I am developing an Android app and I want to detect when the user exits my app either by clicking the Back button or the Home button.
Also, an event like onIn
onIn
Yes, check the lifecycle of the app - when a user minimizes or leaves a couple of methods get called onPause() onStop() and onDestroy()
http://developer.android.com/reference/android/app/Activity.html