Clearing the back stack

If the user leaves a task for a long time, the system clears the task of all
activities except the root activity. When the user returns to the task
again, only the root activity is restored. The system behaves this way,
because, after an extended amount of time, users likely have abandoned what
they were doing before and are returning to the task to begin something new.

There are some activity attributes that you can use to modify this behavior:

alwaysRetainTaskState If this attribute is set to"true" in the root activity
of a task, the default behavior just described does not happen. The task
retains all activities in its stack even after a long period.
On Sep 29, 2011 4:59 AM, "ANKUR GOEL" <[email protected]> wrote:
> Hi all,
>
> i had make one application ...
>
> while clicking from any activity the Home button the restarts again from
the
> first activity .
>
> its not going to the same activity
>
>
> can anybody help me regarding this .
>
>
> Thanks and Regards:-
>
> Ankur Goel
> 09019040351
> S/W Engg.
>
> --
> 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

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