no, the application class has no callback for "when the app closes". That said on the android platform an app is pushed to the background e.g. when you hit the home button or get a phone call. You'd have to use workarounds to reset your variables "on app closing". (P.S. the notion of an app closing doesn't exist on android)
Ok, Thank you! So i could make a splash screen that appear when the app i opening, and during the splash screen i can cancel my data. I think that this way can be right!
onDestroy()
,onPause()
andonStop()
methods are there, check this developer.android.com/reference/android/app/Activity.html