I have a toast message that runs on button-click. I have another button that starts another activity.
The toast is Ok if the user is on that activity, but if user navigates to new activity before Toast is done displaying it just doesnt looks appropriate. How to end the toast as soon as activity is finished.
I have a toast message that runs on button-click. I have another button that
Share
Close the view if it’s showing, or don’t show it if it isn’t showing yet. You do not normally have to call this. Normally view will disappear on its own after the appropriate duration.
I haven’t try this…Hope it will work..
EDIT:
And use
t.cancel();wherever you want