webView.getSettings().setAppCachePath("/data/data/" + getPackageName() + "/cache");
webView.getSettings().setAppCacheEnabled(true);
error: cannot find symbol
webView.getSettings().setAppCachePath("/data/data/" + getPackageName() + "/cache");
^
symbol: method setAppCachePath(String)
location: class WebSettings
What is an alternative for these lines?
private void enableHTML5AppCache() {
webView.getSettings().setDomStorageEnabled(true);
webView.getSettings().setAppCachePath("/data/data/" + getPackageName() + "/cache");
webView.getSettings().setAppCacheEnabled(true);
webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
}
Can anyone provide me a solution of these errors?
you can use
webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With