I use handlers to display Toasts. These handler must be inside of an
Activity, right?

Now I wonder what happens when I want to show that toast with a
certain delay due to an asynchronous operation. E.g. I retrieve some
details from a server and want to notify the user of the result. The
activity could have been destroyed in the meantime and my toast cannot
be displayed.
I could maybe use Notifications but I really do want to use toasts.

Is there any workaround? Do I need to keep at least one activity alive
which the user must not close? However, the OS could still finish that
activity.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to