As a rule, you do not need to stop using Android. There a long answer from CommonsWare explains why. However, there are several ways to do this. One such way is the FLAG_ACTIVITY_CLEAR_TOP intent FLAG_ACTIVITY_CLEAR_TOP , which brings the target activity to the top of the stack and closes anything that could have been opened since then. You would use this if you had a button that returns the user from anywhere to the main menu. This button will send the intention to launch the "main menu" with the flag CLEAR_TOP. Then the βmain menuβ could be closed with a simple finish() , and you would know that none of the other activities were open.
Another way is that if you started other actions using startActivityForResult, you can use finishActivity(requestCode) to close all the actions that were started with this request code.
However, as I wrote above, usually you do not need to do this.
source share