简体   繁体   English

如何使用Volley库在登录应用程序中保存用户名和密码进行发送和请求

[英]How can I save username and password in login application using volley library to sent and request

我如何在登录应用程序中使用Volley发送和请求.and保存设置,以保存用户名和密码并保存设置记住我的登录信息

When talking about username and password all answer I usually see talk about storing them in SharedPreferences and that's totally wrong!!! 当谈论用户名和密码时,我通常会看到谈论将它们存储在SharedPreferences说法,这是完全错误的!

What are SharedPreferences for? 什么是SharedPreferences 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 在这里您可以找到有关实现它的教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM