开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜