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 <[email protected]> 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 [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 > -- 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 [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

