Android: Is onResume always called after onCreate?

后端 未结 6 524
南旧
南旧 2021-01-30 13:17

I need to know if there is ever an instance when onResume will be called before onCreate has been called at least once. Thanks.

Edit: Judging b

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 13:41

    Note: This answer only an additional one to complement the accepted answers.

    As previous answers say:

    onResume() will never be called before onCreate().

    Read more about it in the Activity Lifecycle and Starting an Activity.

    Below the complete image of Activity lifecycle including Fragment Lifecycle from android-lifecycle:

提交回复
热议问题