How to do something when the user leaves the current activity
135142
How to make some code execute when the user leaves the current activity (Pressing back hardware button)
59383
How to exit from the application and show the home screen?
9978
How to save an activity state using save instance state?
109467
How do I handle a back-button press in a (Delphi) Android app?
155084
How to close Android application?
4257
How to detect and count when activity goes from background to foreground
107288
Handle application exit
91260
Sending data back to the Main Activity in Android
157927
Is there a way to quit an app when the last item is closed?
73433
How to log out a user when a session times out or ends
95399
What is Activity.finish() method doing exactly?
103207
How to determine an app moving to a background state due to a phone call or due to the user pressing the home button
33326
How to switch activity without animation in Android?
84070
What is the simplest and most robust way to get the user's current location on Android?
47674
How to pass an object from one activity to another on Android
117461
Launching activities within a tab in Android
15531
Is there a hook that runs after a user logs in?