android x5内核 缓存,fusionapp缓存x5浏览器内核设置和清理

本文介绍了如何在Android中针对X5内核进行缓存设置,包括允许JavaScript打开窗口、显示缩放控件等,并展示了如何在程序启动时通过JavaScript接口清理缓存,执行多种清除命令以删除应用的缓存文件和数据。
摘要由CSDN通过智能技术生成

X5最小缓存设置

import "android.app.*"

import "android.os.*"

import "android.widget.*"

import "android.view.*"

import "android.support.*"

import "com.tencent.smtt.sdk.*"

webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);

webView.getSettings().setDisplayZoomControls(true);

webView.getSettings().setSupportZoom(true);

webView.getSettings().setDomStorageEnabled(false);

webView.getSettings().setDatabaseEnabled(false);

webView.getSettings().setAppCacheEnabled(false);

webView.getSettings().setUseWideViewPort(true);

webView.getSettings().setAllowFileAccess(true);

webView.getSettings().setBuiltInZoomControls(true);

webView.getSettings().setDisplayZoomControls(true);

webView.getSettings().setLoadWithOverviewMode(true);

webView.getSettings().se

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值