Re: [android-developers] Re: onSaveInstanceState(Bundle) && onRestoreInstanceState(Bundle)
Yes any config change like that involving restarting an activity will save and restore its state like normal. Otherwise the new activity would not match the old one.
On Sat, Apr 16, 2011 at 1:37 PM, TreKing <trekingapp@gmail.com> wrote:
Was that a typo? Rotating the phone or flipping out the G1 keyboard is how I quickly test saving / restoring state. Both functions are definitely called and onCreate comes back with a non-null value.On Sat, Apr 16, 2011 at 3:13 PM, Streets Of Boston <flyingdutchie@gmail.com> wrote:
For rotating the phone or sliding out the keyboard and such, onSaveInstanceState is not called and the onCreate will have a null value for the 'savedInstanceState' parameter.I just tested this again to double-check my sanity.
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Dianne Hackborn
Android framework engineer
hackbod@android.com
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home