How to programmatically distinguish the event of the present Activity closure from the intermediate onStop() and onDestroy() calls when the screen is rotated (the screen orientation changes)?

  • one
    And how do you get real closing of the activit? - Yuriy SPb

1 answer 1

The boolean isFinishing() method. Called normally in onPause() .