Finishing all activities started before the activity
问题 I want to finish all the activities which are running in the application means want to remove all the parent activities from stack. I want to implement logout functionality locally in my application so what I was thinking, I will finish all the activities started before and will start login activity again.. 回答1: I should let you know this is not a recommended behavior in android since you should let itself to manage life circles of activities. However if you really need to do this, you can