Search code examples
androidtoast

How to disable a toast messages in my app?


I am building an Othello game (human play with bot). In my program have no any Toast command and infinite loop, my game just takes a long time to compute for each next move of my bot (I am trying to make my bot more smarter). Because of some unclear reason, the system always show an empty message by toast and error message in logcat as below and I don't want to see its appearance. How can I disable it, or all Toast message?

enter image description here

In logcat:

Package has already posted 50 toasts. Not showing more

Thank in advance!


Solution

  • You may have a third-party library that creates toasts. You can use Find in path or Find usages in Android Studio to find where the toasts are being displayed.