Android Activity Lifecycle: onStart() -> onStop() possible?

后端 未结 3 1753
难免孤独
难免孤独 2021-02-03 13:36

In the Android Application Fundamentals it says that after the call to the onStart()-method of the activity lifecycle either the callback method onResume() or

3条回答
  •  野性不改
    2021-02-03 14:04

    When the user leaves your activity, the system calls onStop() to stop the activity
    (1). If the user returns while the activity is stopped, the system calls onRestart()
    (2), quickly followed by onStart()
    (3) and onResume()
    (4). Notice that no matter what scenario causes the activity to stop, the system always calls onPause() before calling

提交回复
热议问题