I have a button in my activity. If I click on show Toast. But when I click again Toast show again. So in result when I click many times this Toast will appear for long time. When first disapear, next is showing and etc. How I can do when I click again on button, first toast will be hide.
Share
call
cancel()method to hide Toast if already showing.Have a look at this API.
This can be simply called on Toast’s object.