简体   繁体   English

Android身份验证和Web

[英]Android authentication and Web

I set up Contacts and Synchronization in the application I am developing. 我在正在开发的应用程序中设置了“联系人和同步”。 Authentication works in directly to the web site using DefaultHttpClient. 身份验证使用DefaultHttpClient直接在网站中起作用。 That means I need to store cookies and every time user does something send it to server using that cookie. 这意味着我需要存储cookie,并且每次用户执行某些操作时,都会使用该cookie将其发送到服务器。 What is the better way to store the cookies? 存储cookie的更好方法是什么? It seems CookieSyncManager only works with WebView. 看来CookieSyncManager仅适用于WebView。 Or can I use it with DefaultHttpClient? 还是可以将其与DefaultHttpClient一起使用?

In the webview, there is a setting. 在网络视图中,有一个设置。 I think this may help you: 我认为这可能对您有帮助:

WebSettings.setSavePassword(boolean save);

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

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