Toast Message in Android
Friends, In my application Toast message is Displayed in Activity say UserActivity.class..
That activity includes a button, in which it will Redirect to next Activity in OnClick of butto开发者_StackOverflow社区n..
What i want is that my Toast Message should display in UserActivity until user taps Button, if user Taps the button my toast message has to be Disappear and Next activity will appear..
Is it possible to do like this, if so how its possible?
Thanks Venkatesh.
This is quite simple. Just call the cancel method on your ToastMessage as soon as you don't want to show the ToastMessage anymore. Refer Toast cancel()
精彩评论