Use android:taskAffinity to specify the affinity of activities in your
second task.  (For example android:taskAffinity=":otherstuff").  When you
want to switch between these tasks in your UI flow, use
Intent.FLAG_ACTIVITY_NEW_TASK to switch to the other task.  There are lots
of subtleties you will get in to about what happens to the state of the task
when you switch to it, since you are essentially becoming an app switcher at
that point.

On Mon, Mar 7, 2011 at 2:29 PM, Julius Spencer <[email protected]> wrote:

> Hi,
>
> I was wondering whether it's possible to have two Activity stacks in an
> application so if a user is using one part of an application and navigates
> to another area and then navigates back (without using the back button) to
> the original area he has the same "history" of Activities.
>
> Regards,
> Julius.
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

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