1. Download our Official Android App: Forums for Android!

Apps Clearing the Activity stack

Discussion in 'Android Development' started by a_happy_human, Jul 14, 2011.

  1. a_happy_human

    a_happy_human Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jan 29, 2010

    Jan 29, 2010
    1
    0
    5
    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.
     

    Advertisement

  2. harindersingh

    harindersingh Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    May 30, 2011

    May 30, 2011
    2
    0
    5
    Working as a software engineer in MiriInfotech
    India

Share This Page

Loading...