I have 3 Activities, Activity A, B, & C. From ActivityA, I click on a button to launch ActivityB and within ActivityB I click another button to launch ActivityC.
I am trying to figure out the proper way to return to ActivityA from ActivityC with optional return to ActivityB from ActivityC.
If I am in ActivityC and click the home button I want to return to ActivityB, but if I click my 'save' button I want to finish ActivityC & ActivityB and show ActivityA.
How can I accomplish this?
Answer Edit: As krishna murali's suggested in his answer, he was about 99% of the way there. These two flags did the trick Intent.FLAG_ACTIVITY_CLEAR_TOP & Intent.FLAG_ACTIVITY_SINGLE_TOP
 
    