I have an Android browser and I have the option to clear cache, storage, cookies, etc.
The code looks like this:
webView.clearCache(true);
webView.clearFormData();
webView.clearHistory();
webView.clearSslPreferences();
CookieManager.getInstance().removeAllCookies(null);
CookieManager.getInstance().flush();
And this seems to work on all my tests but when I go to google.com my old searches are still there. What am I not clearing?
Thanks.
Open your browser. Android browser: Go to Menu > More > Settings or Menu > Settings > Privacy & Security. Chrome: Go to Menu > Settings > Privacy. Android browser: Tap Clear cache, Clear history, and Clear all cookie data as appropriate.
setAppCacheEnabled(false); mWebView. getSettings(). setCacheMode(WebSettings. LOAD_NO_CACHE);
Found the solution:
WebStorage.getInstance().deleteAllData();
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