Does anybody know, if there is a possibility to do something (in my case finish activity) on toast message will be closed?
Afaik the INotificationManager API (which is used under the hood of the toast class) does not have any support for notifying the caller when it closes the Toast.
There's also no way to check if the Toast is showing or hidden without using reflection to pick out the inner class that represents the transient notification.