Simplest Android Activity Lifecycle

前端 未结 9 1291
礼貌的吻别
礼貌的吻别 2020-12-13 20:28

I noticed that the Android Developers Activity section has been updated since I started my app, but I am still unclear what the simplest Activity Lifecycle is.

As fa

9条回答
  •  一生所求
    2020-12-13 20:41

    There are 7 methods that manage the activity lifecycle in Android application:

    1. onCreate()
    2. onStart()
    3. onResume()
    4. onRestart()
    5. onPause()
    6. onStop()
    7. onDestroy()

    I have written more in-depth about these methods on my blog

提交回复
热议问题