Thursday, July 28, 2011

Re: [android-developers] paused activity

On Thu, Jul 28, 2011 at 1:20 PM, Ab Caballero <ahb3@mac.com> wrote:
> I have an application with 3 activities, which i will call A, B and C.
> The activities fire in sequence A->B->C, with each previous activity
> being paused. My question is, how do i go from the C activity back to
> the A activity, without going to the B activity first, i.e. C->A?

startActivity(), with an Intent identifying A. Use
FLAG_ACTIVITY_REORDER_TO_FRONT to bring the existing instance to the
top of the stack.

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

No comments:

Post a Comment