Android cancel Toast when exiting the app and when toast is being shown

后端 未结 4 1117
独厮守ぢ
独厮守ぢ 2020-11-27 05:32

I have read about this kind of problem here but the answers don\'t seem to be working.

I show a Toast when user clicks a button. When the user continous

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 06:03

    You can cancel individual Toasts by calling cancel() on the Toast object. AFAIK, there is no way for you to cancel all outstanding Toasts, though.

提交回复
热议问题