If you follow the link https://developer.android.com/reference/androidx/lifecycle/Lifecycle.State.html#CREATED you'd see that CREATED event is raised in two conditions
1) after onCreate (understandable ) 2) right before onStop(wait what ?)
why would the lifecycle raise the CREATED event just before onStop ?
First of all, CREATED is not an event but an activity state. The given doc means after onCreate() called, activity is in CREATED (then became RESUMED after onResume() called). When the activity onStop() called, activity became CREATED again (CREATED but not RESUMED in this case).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With