I'm a bit confused by the saved instance state mechanism.

If I breakpoint in onCreate, run the app, hit the Home button, then
relaunch the app, I typically see a null Bundle passed in to
onCreate.

But, if I (for example) rotate the emulator, I see a non-null Bundle
in onCreate, and the app has the right state after the rotation.

What causes the null in the first example ? It looks as though the
system has thrown away the saved instance state on our behalf.

Thanks,

Richard

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

Reply via email to