On Wed, Nov 24, 2010 at 3:49 AM, Suresh Pal <[email protected]> wrote:
> It means both of these methods are called whenever there is
> configuration changes - because my understanding is restart is also
> killing the activity.

Correct.

> So, I wonder what are differences between the two methods and in why
> should one not use  onSaveInstanceState() instead of
> onRetainNonConfigurationInstance() for the configuration changes.

Use both. Take a look at the data types accepted by Bundle -- what
does not fit in a Bundle will need to be handled via
onRetainNonConfigurationInstance().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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