On logout, clear Activity history stack, preventing “back” button from opening logged-in-only Activities
问题 All activities in my application require a user to be logged-in to view. Users can log out from almost any activity. This is a requirement of the application. At any point if the user logs-out, I want to send the user to the Login Activity . At this point I want this activity to be at the bottom of the history stack so that pressing the \"back\" button returns the user to Android\'s home screen. I\'ve seen this question asked a few different places, all answered with similar answers (that I