我如何在登录应用程序中使用Volley发送和请求.and保存设置,以保存用户名和密码并保存设置记住我的登录信息
When talking about username and password all answer I usually see talk about storing them in SharedPreferences
and that's totally wrong!!!
What are SharedPreferences
for? Preferences
Is the current user a preference? NO
So I always recommend using the Account Manager System . It's a bit harder to implement but it's the way the system has to implement user accounts (which is, BTW, what you have when you use a username + password login)
Here you can find a tutorial about implementing it
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.