I have a couple of question regarding onRestoreInstanceState
and onSaveInstanceState
.
1) where do these methods fit the activity lifecycle? I have read a lot of documentation but there is no clear idea, except a broad statement that when the state of the activity is to be saved
2) Are onCreate
and onRestoreInstanceState
mutually exclusive?
3) is onRestoreInstanceState
called when the activity is destroyed? what does this mean? an activity always destroyed except for scenarios when another activity is floating on top of current.
4) onRestoreInstanceState
appears to be called only from instrumentation in jelly bean. Is this no longer relevant to activity lifecycle?