Wednesday, November 2, 2011

[android-developers] Re: Activity creation order after kill

Update - Answer to 2 is Yes.

On Oct 27, 6:48 pm, Assaf <assaf.sas...@gmail.com> wrote:
> As I now understand, Android will start the top-most activity even
> after killing the process due to resource shortage. (seehttp://groups.google.com/group/android-developers/browse_thread/threa...
> )
>
> My root activity is responsible for some initialization code that I
> wouldn't like to bother-with from other activities.
>
> Questions:
>
> 1. Any way to change this behavior and ask Android to clear the task
> when killing my process ?
>
> 2. If not, what will happen if the user press BACK in such scenario ?
> will Android re-create the next activity in the stack ?  i.e. stack
> has activities A,B,C. process is killed. User re-selects my app,
> Android creates *C*, user presses BACK. will Android now create B ?
>
> Thanks.

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