Post Toast on Android

Friends, In my application, a Toast message is displayed in Activity say UserActivity.class ..

This activity includes a button in which it will be redirected to the next activity in the OnClick button.

What I want is that my Toast message should be displayed in UserActivity until the user clicks the Button, if the user clicks the button, my toast message should disappear and the next action will appear.

Is it possible to do this, if so, how is it possible?

Thanks Venkatesh.

+4
android duration toast
Mar 15 2018-11-11T00:
source share
1 answer

It is pretty simple. Just call the undo method on your ToastMessage as soon as you no longer want to show ToastMessage. Refer Toast cancel ()

+4
Mar 15 2018-11-11T00: 00Z
source share



All Articles