How to avoid a toast message in android if toast message is already running?

You have to keep a reference to the Toast and control it by yourself. Check this two post Toast Message in Android toast issue in android.

Thanks For Your response. – deepak goel Aug 4 at 4:27.

It turned out by logging getDuration() that it carries a value of 0 (if makeText()'s parameter was Toast. LENGTH_SHORT) or 1 (if makeText()'s parameter was Toast. Finally I tried to check if the toast's view isShown().

Of course it isn't if no toast is shown, but even more, it returns a fatal error in this case. So I needed to try and catch the error. Now, isShown() returns true if a toast is displayed.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions