[英]How can i logout from my application
I am new to android. 我是Android新手。 I want in my application logout facility. 我要在我的应用程序注销工具中。 How can i log out from my application. 我如何注销我的应用程序。 I want to clear shared preferences in logout button ,but i don't know How can I do this. 我想清除注销按钮中的共享首选项,但是我不知道该怎么做。
android:noHistory
for all of your activities 对所有活动保持android:noHistory
onDestroy()
or onStop()
of your root activity 看到您清除了根活动的onDestroy()
或onStop()
中的所有内容
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.