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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en