将 cookie 传递给 Android WebView
我有一个网络服务。通常我会使用 HttpURLConnection 进行连接。这是我需要的一个。 连接 HttpURLConnection 并从 HttpURLConnection 获取会话和 cookie 信息并打开 WebView。 简而言之 从应用程序进程内输入是否 android.我想在WebView中进行其余的操作。
I have a web service. Normally I give a connection with HttpURLConnection. Here's one I need.
Connect with HttpURLConnection and get session and cookie information from the HttpURLConnection and open WebView.
in short
Input from within the application process whether android. I want to make the rest of the operations in WebView.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看一下 CookieSyncManager 类。通过谷歌,我发现了这个:
Have a look at
CookieSyncManager
class. With google, I found this: