刚看这个,不是很了解,基本上跟网上的不一致。
我都写了缓存的啊,各种都有,为何没有databases的db文件,还是现在换了新的存储方式?
//缓存 web.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); web.getSettings().setJavaScriptEnabled(true); String cacheDir = getCacheDir().getAbsolutePath() + APP_CACHE_NAME; Log.i("cacheDir", cacheDir); web.getSettings().setDomStorageEnabled(true); web.getSettings().setDatabaseEnabled(true); web.getSettings().setAppCacheEnabled(true); web.getSettings().setAppCachePath(cacheDir); web.getSettings().setGeolocationDatabasePath(cacheDir);
包目录:
app_webview目录
楼主离线能读到这些缓存吗?
楼主,你解决了吗 我也是这样