Wednesday, November 24, 2010

Re: [android-developers] What are differences between onRetainNonConfigurationInstance() and onSaveInstanceState()

On Wed, Nov 24, 2010 at 1:16 PM, Suresh Chandra Pal
<sureshchandrapal@gmail.com> wrote:
> Thanks for your comments mark.
>
> Just for curiosity, are there any other differences besides the bundle and
> Object point.
> What will be order of execution of these methods.

They will occur in some order. Your code should not care what the order is.

> Also in API reference for onSaveInstance() the following is mentioned:
>
> 'Do not confuse this method with activity lifecycle callbacks such as
> onPause(), which is always called when an activity is being placed in the
> background or on its way to destruction, or onStop() which is called before
> destruction.'
>
> So will this method be always called when the configuration changes take
> place.

Yes, it will.

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


Real Estate