• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Clearing the Activity stack

I have not found a good solution to this when I searched online. So, maybe someone here can help me out. I have an app with a Login activity, a Home activity, and then a series of other activities that are opened one after the other. So the activity stack could look like this after a while:
L, H, A1, A2, ..., Ai
where Ai is the current activity page being displayed.
Each of the activities A1, A2, ..., Ai will have a menu option "Home" that should re-open H. But I do not want a new H on top of the stack. Instead, I want to close all A1, A2, ..., Ai to get back to H and have the stack look like L, H.
Any solutions would be greatly appreciated.
 
Back
Top Bottom