Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building custom Activity Stack

Tags:

android

From activity A , I need to launch 3 Activities; B, C and D; such that the back stack appears to be:
A -> B -> C -> D
so that on each back press, user goes D -> C, C -> B and finally B -> A .

B,C and D have a Master-Detail relationship. A is kind of a shortcut builder.

TaskStackBuilder can't do this on pre-HoneyComb builds.

Any possible workaround ?

like image 658
S.D. Avatar asked Dec 21 '25 16:12

S.D.


1 Answers

A should launch B. in B.onCreate() launch C. In C.onCreate() launch D.

like image 200
David Wasser Avatar answered Dec 23 '25 04:12

David Wasser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!