Search code examples
androidtoast

Hide Toast on Android


I am developing an application that uses system activity to add a contact to phone's memory. This external activity launches a Toast after saving the contact. Is there any possibility to get rid of it? It would be perfect if I could get a reference to it to call cancel() or cancel all queued Toasts. Is there any Toast manager?


Solution

  • No. You could cancel the Toast if you had a reference to it but since it is created by a separate activity you can't access it.