摘要:
WebView 设置实现两个手指缩放网页: mWebView.getSettings().setSupportZoom(true); mWebView.getSettings().setBuiltInZoomControls(true); WebView cookies清理: CookieSyncManager.createInstance(this); CookieSyncManager.getInstance().startSync(); CookieManager.getInstance().removeSessionCookie(); 另外,清理cache 和历史记录的方法: Web. 阅读全文
摘要:
如何删除项目的缓存: getCacheDir()能够得到当前项目的缓存地址 在项目中经常会使用到WebView 控件,当加载html 页面时,会在/data/data/应用package 目录下生成database与cache 两个文件夹。请求的url 记录是保存在WebViewCache.db,而url 的内容是保存在WebViewCache 文件夹下 打开关闭使用缓存,一共有五个种类 //优先使用缓存: WebView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); //不使用缓存: WebView.g... 阅读全文
摘要:
本例子并不是本人攒写,例子是出自eoeAndroid特刊的第12期。代码如下:/Files/lee0oo0/MulThreadDownloader.rar 阅读全文