why “onPause” is not called in following situation?

后端 未结 5 1026

By the document, \"onPause\" is called, when:

when the system is about to start resuming a previous activity.

Compared to \"onSt

5条回答
  •  余生分开走
    2021-01-13 03:34

    @Henry please Try yourself by testing the flow of app. Create an Activity in which Override all the methods and print log under all the methods. The flow is onCreate>>onStart/restart>>onResume and when you press home button or starts any new activity then it called onPause>>onStop and if you finish your app then your app is destroy/finish so where is confusion.

提交回复
热议问题