In order to track state in a toast-like thing, one could:

- Create a transparent activity (using @android:theme/Translucent);
- Model a toast-like thing in the middle of it (using @android:drawable/toast_frame);
- Handle key events, update the UI;
- Dismiss based on elapsed time;
- Include android:noHistory="true" for the activity in the manifest.

-- Kostya

10.03.2011 22:28, Jake Wharton пишет:
I'm not aware of a status query method. However, be wary of firing off a timer with your Toast. Just because you call .show() on it does not mean it will be displayed right away. It is put into the toast queue (my term) and only displayed when the items in the queue before it, if any, have been displayed. --
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


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
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

Reply via email to