<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Webview on 领风沐雨</title><link>https://blog.zdltech.com/tags/webview/</link><description>Recent content in Webview on 领风沐雨</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Mon, 21 Nov 2016 09:21:12 +0000</lastBuildDate><atom:link href="https://blog.zdltech.com/tags/webview/index.xml" rel="self" type="application/rss+xml"/><item><title>Android webview使用详解</title><link>https://blog.zdltech.com/posts/android-webview%E4%BD%BF%E7%94%A8%E8%AF%A6%E8%A7%A3/</link><pubDate>Mon, 21 Nov 2016 09:21:12 +0000</pubDate><guid>https://blog.zdltech.com/posts/android-webview%E4%BD%BF%E7%94%A8%E8%AF%A6%E8%A7%A3/</guid><description>1. 打开网页时不调用系统浏览器， 而是在本WebView中显示： ![复制代码](http://common.cnblogs.com/images/copycode.gif) ``` mWebView.setWebViewClient(new WebViewClient(){ @Override ...</description></item><item><title>Android WebView 与登录状态保持一致，建立SESSION会话</title><link>https://blog.zdltech.com/posts/android-webview-%E4%B8%8E%E7%99%BB%E5%BD%95%E7%8A%B6%E6%80%81%E4%BF%9D%E6%8C%81%E4%B8%80%E8%87%B4%E5%BB%BA%E7%AB%8Bsession%E4%BC%9A%E8%AF%9D/</link><pubDate>Tue, 11 Oct 2016 11:54:03 +0000</pubDate><guid>https://blog.zdltech.com/posts/android-webview-%E4%B8%8E%E7%99%BB%E5%BD%95%E7%8A%B6%E6%80%81%E4%BF%9D%E6%8C%81%E4%B8%80%E8%87%B4%E5%BB%BA%E7%AB%8Bsession%E4%BC%9A%E8%AF%9D/</guid><description>在登陆界面获取验证码的时候: ``` `new Thread(){ @Override public void run() { try { SharedPreferences spf = getSharedPreferences(&amp;amp;lt;span class=&amp;#34;hljs-string&amp;#34;&amp;gt;&amp;#34;Cooki...</description></item><item><title>android webView网页表单自动登录（单点登录）</title><link>https://blog.zdltech.com/posts/android-webview%E7%BD%91%E9%A1%B5%E8%A1%A8%E5%8D%95%E8%87%AA%E5%8A%A8%E7%99%BB%E5%BD%95%E5%8D%95%E7%82%B9%E7%99%BB%E5%BD%95/</link><pubDate>Mon, 22 Aug 2016 02:37:35 +0000</pubDate><guid>https://blog.zdltech.com/posts/android-webview%E7%BD%91%E9%A1%B5%E8%A1%A8%E5%8D%95%E8%87%AA%E5%8A%A8%E7%99%BB%E5%BD%95%E5%8D%95%E7%82%B9%E7%99%BB%E5%BD%95/</guid><description>今天帮助网友解决了一个在应用中登录后进应用的网页自动登录。 在这里分享给大家，希望能帮助更多的人。直接上代码： ``` /** * 网页自动登录 * http://haohailai.taobao.com/ * @author xiehaibo * */ public class MainActiv...</description></item><item><title>Android WebView 总结</title><link>https://blog.zdltech.com/posts/android-webview-%E6%80%BB%E7%BB%93/</link><pubDate>Mon, 25 May 2015 08:48:47 +0000</pubDate><guid>https://blog.zdltech.com/posts/android-webview-%E6%80%BB%E7%BB%93/</guid><description>1、添加权限：AndroidManifest.xml中必须使用许可&amp;amp;#8221;android.permission.INTERNET&amp;amp;#8221;,否则会出Web page not available错误。 2、在要Activity中生成一个WebView组件：WebView webView = ...</description></item><item><title>Android WebView 与HttpClient 共用本地cookie问题</title><link>https://blog.zdltech.com/posts/android-webview-%E4%B8%8Ehttpclient-%E5%85%B1%E7%94%A8%E6%9C%AC%E5%9C%B0cookie%E9%97%AE%E9%A2%98/</link><pubDate>Fri, 05 Dec 2014 10:03:40 +0000</pubDate><guid>https://blog.zdltech.com/posts/android-webview-%E4%B8%8Ehttpclient-%E5%85%B1%E7%94%A8%E6%9C%AC%E5%9C%B0cookie%E9%97%AE%E9%A2%98/</guid><description>我是为了解决：WebView 缓存下来的cookie可以用于HttpClient，因为我的HttpClient单独需要取一些数据，但是依赖于本地的cookie。如果没有cookie返回来的是登录页面 [html] view plaincopy在CODE上查看代码片派生到我的代码片 核心代码： 1. ...</description></item><item><title>Android（安卓）WebView设置cookie</title><link>https://blog.zdltech.com/posts/android%E5%AE%89%E5%8D%93webview%E8%AE%BE%E7%BD%AEcookie/</link><pubDate>Fri, 05 Dec 2014 08:19:26 +0000</pubDate><guid>https://blog.zdltech.com/posts/android%E5%AE%89%E5%8D%93webview%E8%AE%BE%E7%BD%AEcookie/</guid><description>最近两天一直想用安卓模拟登陆，利用新的WebView显示登陆后可以访问的页面，但是不管怎么访问需要登陆后才能访问的页面，还是跳回到登陆页，后来网上看了下是cookie没有设置，找了半天才到到合适的设置方法： &amp;amp;nbsp; 登陆方法： ``` private Cookie cookie; public...</description></item><item><title>关于android webview里HTML5的地理位置定位，在别的浏览器中打开可以定位，在我自己的webview却不能</title><link>https://blog.zdltech.com/posts/%E5%85%B3%E4%BA%8Eandroid-webview%E9%87%8Chtml5%E7%9A%84%E5%9C%B0%E7%90%86%E4%BD%8D%E7%BD%AE%E5%AE%9A%E4%BD%8D%E5%9C%A8%E5%88%AB%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8%E4%B8%AD%E6%89%93%E5%BC%80/</link><pubDate>Sun, 19 Oct 2014 15:04:22 +0000</pubDate><guid>https://blog.zdltech.com/posts/%E5%85%B3%E4%BA%8Eandroid-webview%E9%87%8Chtml5%E7%9A%84%E5%9C%B0%E7%90%86%E4%BD%8D%E7%BD%AE%E5%AE%9A%E4%BD%8D%E5%9C%A8%E5%88%AB%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8%E4%B8%AD%E6%89%93%E5%BC%80/</guid><description>``` 我也遇到了同样的问题，我查看了下源码解决了，主要代码如下： //启用数据库 webSettings.setDatabaseEnabled(true); String dir = this.getApplicationContext().getDir(&amp;#34;database&amp;#34;, Context.M...</description></item></channel></rss>