If I do not explicitly call onSaveInstanceState(), which are possibilities, when savedInstanceState is not null in onCreate?
I see one option, when system recreates my app after crash - then savedInstanceState is not null.
Which are other options?
Which are possibilities, when savedInstanceState is not null in onCreate()?
onCreate() will be called with non-null Bundle.onCreate() will be called with non-null Bundle.If I do not explicitly call onSaveInstanceState()
You shouldn't do that on your own. It's the system that will call activity lifecycle methods and onSavedInstanceState/onRestoreInstanceState.
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