What method is being called when I close an app

onPause() is the only method that is called always. From onPause() state Android OS can kill this app for many reasons bypassing onStop and onDestroy. I don’t think we can control this behavior of unexpected termination smoothly. Service can check for the state of the application periodically.

Leave a Comment