If my current activity stack is A->B->C, I want it to be like A->B->C-
>A, which the top A is the same instance as the first A.

I tried several approaches, but couldn't get what I want.

1. Before calling startActivity, set intent flag as
Intent.FLAG_ACTIVITY_REORDER_TO_FRONT, which makes the stack like B->C-
>A

2. Trying activity A's launch mode as  "singleTask" or
"singleInstance", still couldn't get expected stack.

It looks like the activity stack per task cannot have duplicate one.

Any solutions will be appreciated.

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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to