Android: Activity.onDestroy() is not called when Dalvik kills this Activity
问题 I'm confused about Activity.onDestroy() . I need to free some resources when my Activity is destroyed, but it seems like onDestroy() is called just when i press "Back" key, but not when my Activity is killed by Dalvik. I tested it just by adding log: Log.v("my_tag", "onDestroy() called"); and the same in onCreate() method too: Log.v("my_tag", "onCreate() called"); Then i start my Activity, and i see in logs: onCreate() called . I press "Back" key and then start Activity again, then i see: