This question has already been answered:

How to programmatically cause a back button?

Reported as a duplicate by participants aleksandr barakin , YuriySPb android 25 Apr '16 at 0:38 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    1 answer 1

    onBackPressed();

    prescribe the event you want.