Android: clear activity history on logout
I want to do the following: After visiting several activities, a user logs out from the app and is redirected to the login page. The problem is, I want the user to not be able to go to the previous ac开发者_如何学运维tivities upon logout. the method finish() seems to work but it only destroys the method from where the user logged out.
Any ideas on the issue? Thanks.
In onStart()
of your activities, see if the user is logged in. If not, pop a dialog or start the login activity or something.
精彩评论