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?

5) One thing that keeps on being mentioned is that onRestoreInstanceState is 
executed after start and onCreate before start. So if onCreate is called 
everytime, then is onRestoreInstanceState redundant?


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to