Reputation: 367
I'm trying to find any information about guaranteed lifecycle callbacks order (interested only in onCreate, onResume, onPause) for the following scenario:
So, what is the guaranteed lifecycle callbacks execution order after steps (3), (5)?
Upvotes: 1
Views: 753
Reputation: 62189
So, what is the guaranteed lifecycle callbacks execution order after steps (3), (5)?
After step 3:
onStop()
is guaranteed to be calledonDestroy()
is not guaranteed. After step 5:
onCreate()
onStart()
onRestoreInstanceState()
onResume()
All of these are guaranteed to be called.
I've logged lifecycle callbacks, and here's the output.
Note:
Theme.AppCompat.Dialog
as themeDon't keep activities
mode is turned onUpvotes: 1