My Android app is for a hiking club and starts with a Home screen, which is the main activity. The home screen shows the house-style and has some buttons to the core functionalities: list of upcoming hikes, history of hikes, last reactions and also a message board.
THe activity flow is pretty straightforward, you can i.e. navigate from: Home -> Hike list -> Hike Details
And back using the Back button. Going back from the Home activity will ask for closing the app. I already use the FLAG_ACTIVITY_CLEAR_TOP flag to prevent several instance of the same activity. But my problem is I have also implemented a Menu to navigate to the core functionalities directly.
So for example, when in the Hike Detail screen, one can choose to go to the Message board. But I do not want to keep the Hike List -> Hike Detail activities on the stack. So when pressing Back from the message board, I always want to return to the Home activity.
IS there a clean possibility to pop the stack and only keep the Home activity before launching a new activity? I guess that would solve my issue.