Dear Android experts:
i don't know how to route media playback into an active telephone call ,
please anyone can show me a way ?
is there any sample i can refer ?
thank you very much!
best regard!
2012-06-22
Smartfire
发件人:String
发送时间:2012-06-22 18:35
主题:[android-developers] Re: Two things holding up my app. Any suggestions?
收件人:"android-developers"<[email protected]>
抄送:
On Wednesday, June 20, 2012 5:06:24 PM UTC+2, Shino wrote:
For my second issue... Accessing an AsyncTask from a Notification's
PendingIntent ... Could I put a BroadcastReceiver in the AsyncTask then send a
broadcast on user interaction with the dialog? That was the next option I was
going to try... I just haven't had time to implement it yet.
I can't say I've tried this specific situation, but I create BroadcastReceivers
all over my code, and I'd be quite surprised if this doesn't work.
If (for some reason) it doesn't, though, an alternative would be to use a
background Service rather than an AsyncTask. You can definitely create a
BroadcastReceiver in a Service like this. And arguably, if you're going to be
attaching to it from places other than the Activity that created it, a Service
is a better architecture than an AsyncTask anyway. Not saying you should
rebuild it if the AsyncTask is working for you, though.
String
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en