Activity A is the home page of my application.
A -> B -> C
C starts A with FLAG_ACTIVITY_CLEAR_TOP to get the home page A correctly. This works fine and the stack simply becomes,
A
But B can be invoked directly using Notification Manager.
B -> C -> A
So even I use FLAG_ACTIVITY_CLEAR_TOP flag while starting A in C, the B and C still exists in Stack before A(home page) and on pressing back button from A, it goes back to B and C.
I dont want this behavior. On starting activity A from C, The stack only should have A. How canI do this?