Friday, June 11, 2010

[android-developers] how to display a Toast from an IntentService?

So, I have an IntentService that handles button callbacks from a
widget. When the user presses a certain button, I want to display a
Toast. I return from onHandleIntent almost immediately after doing
Toast.show(), which in turn stops the service and kills its thread,
which keeps the Toast from actually being displayed.

Can anyone suggest an easy way to get the Toast (or something similar)
to display from an IntentService?

Thanks a bunch,
Steve

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

No comments:

Post a Comment