I have a question about the Activity's state while in onActivityResult. Specifically, is it 'guaranteed' that either onRestoreInstanceState or onCreate have been called prior to onActivityResult for an Activity? In other words, is it safe to assume that the state data (member variables and such) of the Activity are 'usable' while in onActivityResult (assuming you have properly handled onRestoreInstanceState and or onCreate)?
In my app I get the following workflow:
onCreate
onStart
onRestoreInstanceState
onActivityResult
onResume
So, yes onActivityResult
is called AFTER the onRestoreInstanceState
, so you can count on the state has been fully restored (unless you do smth in onResume
).
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