I am new to 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 onDestroy()
or onStop()
of your root activity
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.