Search code examples
androidandroid-activityondestroy

Does the Back button trigger a call to "onDestroy"?


When the back button is being pressed and the current activity is being popped, will onDestroy be called? It seems that it's not called for me


Solution

  • It seems like onStop will be called. onPause will be called also on screen lock or incoming calls etc.

    It Seems the right way to handle activity pop will be onStop().