Sunday, May 1, 2011

Re: [android-developers] Re: Activity Lifecycle Documentation Question

On Sun, May 1, 2011 at 8:15 AM, William Ferguson <william.ferguson.au@gmail.com> wrote:
Dianne, just a clarification on this thread.
In the diagram of the Activity lifecyle at
Should the directed edge on the left hand side from #onStop to
#onCreate actually be between #onDestroy and #onCreate?

And is that behaviour just from 3.0 onwards?
If not, what is the behavior for earlier versions of Android.

No that is fine.  In Android 3.0, ignore the line from onPause() to onCreate() if you are setting android:targetSdkVersion="11" or greater; that is the change the doc mentions, the system will now try to avoid killing processes that have activities that haven't been stopped.

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

No comments:

Post a Comment