views:

362

answers:

1

I have a problem, how do I disable all toast messages being process currently?

In my App, there is a list, when a user clicks on an item, a toast message is being displayed, 10 items - 10 toast messages,

so if the user clicks 10 times, then presses the menu button... he has to wait for some seconds, until he's able to read the menu option text.

shouldn't be like that :)

+2  A: 

how do I disable all toast messages being process currently?

You can cancel individual Toasts by calling cancel() on the Toast object. AFAIK, there is no way for you to cancel all outstanding Toasts, though.

CommonsWare
hmm, thanks a lot, will try to create something.but if i add all toast messages to some kind of structure... is there a possibility to check which ones have been shown and which not.I'm kind of busy meanwhile... sry to ask and not to try, at least i'll respond with trying to build something (at the latest) at the end of the week.-thanks!-
crazyV
This is my latest Android pet peeve: no ability to cancel all queued Toasts.
Cody Caughlan