I have the following problem: I opened the activity A, from which I opened the activity B. Then I want to open the activity C from B, such that when pressing the back button in the C activity, the application should be closed instead of going back to the previous (B) activity. I tried to use the ideas from here (http://stackoverflow.com/questions/5794506/android-clear-the-back-stack), but they don’t work. I know how to handle intents, I am interested only in the back navigation problem.
Share
Start your activities like this..
this in activity A
this in activity B
in activity C override back button
and put this in activity B
and put this in activity A