Does anybody know, if there is a possibility to do something (in my case finish activity) on toast message will be closed?
android.widget.Toast doesn't offer any listeners for informing when it is finished.
You may call Toast.getDuration() to learn how long it will last, and make your own TimerTask to run at the time when Toast vanishes, and do your tasks there.