onDestroy() won't get called after this.finish()

前端 未结 3 470
暖寄归人
暖寄归人 2021-01-21 00:28

I\'m wondering why the Motorola Milestone with 2.1-update1 behaves differently from the Emulator or e.g. the Nexus One. I am trying to exit my app with:

@Overrid         


        
3条回答
  •  日久生厌
    2021-01-21 00:51

    If the user exits to the home screen this does not need to mean that the app should be exited. In most of the time it will give a better user experience if the app just goes to the background. Try to rely on saveInstanceState and onPause.

    Exiting a app is seen as bad practice in the android world, featuring a phone with a good system for true multitouch can get better user experience if the app keeps running after pressing the home screen.

提交回复
热议问题