What you are seeing is the normal user interaction.  The user is not aware
the process has been killed, so they expect to return to the app in the way
they last saw it.

alwaysRetainTaskState is a totally separate thing, and allows you to turn
off a facility where if the user hasn't been in your app for a while, upon
returning to it its task can be reset.  This is independent of whether or
not its process needs to be restarted.

On Thu, Sep 23, 2010 at 8:22 AM, Albert <albert8...@googlemail.com> wrote:

>
> It looks like attribute this could solve the issue:
>
>
> ------------------------------------------------------------------------------------------------------------
> android:alwaysRetainTaskState
>
> Whether or not the state of the task that the activity is in will
> always be maintained by the system — "true" if it will be, and "false"
> if the system is allowed to reset the task to its initial state in
> certain situations. The default value is "false". This attribute is
> meaningful only for the root activity of a task; it's ignored for all
> other activities.
> Normally, the system clears a task (removes all activities from the
> stack above the root activity) in certain situations when the user re-
> selects that task from the home screen. Typically, this is done if the
> user hasn't visited the task for a certain amount of time, such as 30
> minutes.
> However, when this attribute is "true", users will always return to
> the task in its last state, regardless of how they get there. This is
> useful, for example, in an application like the web browser where
> there is a lot of state (such as multiple open tabs) that users would
> not like to lose.
>
> ---------------------------------------------------------------------------------------------------
>
> I will try it and post back the results.
>
> --
> 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+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to