How do I control the amount of Toasts that are displayed without them forming a display queue?

1

I'm developing an Android app that basically is a game. In the main activity there is a button to start playing and other buttons that are also part of the game, but if the user presses any button other than to start, a Toast is displayed asking him to press the start button. The problem is that he can push other buttons several times, flooding the screen of Toasts that repeat the number of times they were requested.

It is desirable that there should be no queues, ie Toast will only be displayed if there is no other Toast on display.

    
asked by anonymous 15.11.2017 / 16:13

0 answers