且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

登录使用OAuth Gmail的Web界面

更新时间:2023-12-04 10:35:22

您必须把你的的WebView 作为浏览器。怎么样的Chrome浏览器让你每次访问Gmail的时候可以自动登录?它的Gmail存储会话cookie。

You have to regard your WebView as a browser. How does a browser like Chrome let you be automatically signed in each time you visit Gmail? It stores the session cookies from Gmail.

要存储cookie从的WebView ,下一次重新使用它们,检查出的 CookieManager

To store cookies from your WebView and reuse them the next time, check out CookieManager.