perfect, thx!

On Sep 17, 1:40 am, tauntz <[email protected]> wrote:
> Hi,
>
> I guess that's exactly what you are looking 
> for:http://developer.android.com/reference/android/content/Intent.html#FL...
> "If set in an Intent passed to Context.startActivity(), this flag will
> cause the launched activity to be brought to the front of its task's
> history stack if it is already running.
>
> For example, consider a task consisting of four activities: A, B, C,
> D. If D calls startActivity() with an Intent that resolves to the
> component of activity B, then B will be brought to the front of the
> history stack, with this resulting order: A, C, D, B. This flag will
> be ignored if FLAG_ACTIVITY_CLEAR_TOP is also specified. "
>
> Tauno
>
> On Thu, Sep 17, 2009 at 11:31 AM, sdphil <[email protected]> wrote:
>
> > I have the following situation.  I have a task with the following
> > activity stack --
> > A - B - C
>
> > I have a menu item that allows me to start activity D; so my activity
> > stack looks like this --
> > A - B - C - D
>
> > Then I could select a menu item that allows me to start an activity C,
> > which would cause my activity stack to look like this:
> > A - B - C - D - C
>
> > Then I could go back (via the menu item) to activity D, making my
> > activity stack look like this:
> > A - B - C - D - C - D
>
> > Doing this a few more times, it would wind up looking like this --
> > A - B - C - D - C - D - C - D - C - D - C - D - C - D - C - D - C - D
> > - C - D - C - D
>
> > This seems kinda stupid to me.  I'd like it to simply re-use an
> > activity, or pop the activity below to be on top (which goes against
> > the nature of a "stack").
>
> > So, what I mean is if I had this activity stack:
> > A - B - C - D
>
> > And I started activity C (from the menu), I would get:
> > A - B - D - C
>
> > And if I then started activity D (from the menu), I would get:
> > A - B - C - D
>
> > Is there a way to do this without keeping some global list of
> > activities and doing gross things to them to reorder them?
>
> > tia.
--~--~---------~--~----~------------~-------~--~----~
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