Reputation: 4719
When Android app shows a Toast message if the app is in the background, it goes to the notification tray. When we click it from the notification tray it brings the app in the foreground.
But when the app is in the foreground, it shows the message on the screen. If I click the message, it does nothing. I would like to take the user to some specific activity.
Mainly I want to handle the toast message click event. Is it possible? If yes, how?
Upvotes: 1
Views: 988
Reputation: 504
According to this answer you can not.
But you may take a look at snackbars or stick to toasts and use libraries that may deliver such results e.g. Super Toasts
Upvotes: 1