Re: [android-developers] Order Activity
Use FLAG_ACTIVITY_REORDER_TO_FRONT as a flag on your Intent to bring
an existing instance back to the foreground.
On Thu, Aug 4, 2011 at 9:29 AM, Mark Cz <omercz@gmail.com> wrote:
> Hi All,
> I have 3 activities, lets call them A, B, C
>
> Activity A is the starting point of my applications:
> Activity A has two buttons:
> 1. Start Activity B
> 2. Start Activity C
>
> from Activity B, I can go to Activity C
> from Activity C, I can go to Activity B
>
> I want my Activity stack to be:
> A-B-C
> or
> A-C-B
>
> and not
> A-B-C-B-C-B-C-B-C-B-C-B-C.....
> or
> A-C-B-C-B-C-B-C-B-C-B-C-B....
>
> So my question is:
> How do I start activity B from C (or C from 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
>
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in NYC: http://marakana.com/training/android/
--
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