P1. Does WebView history, cookies, generate autocomplete information? If so, can we prevent this?
[Answer] Yes, WebView stores history and cookies and autocomplete.
To stop:
//Make sure No cookies are created CookieManager.getInstance().setAcceptCookie(false); //Make sure no caching is done myWebView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); myWebView.getSettings().setAppCacheEnabled(false); myWebView.clearHistory(); myWebView.clearCache(true); //Make sure no autofill for Forms/ user-name password happens for the app myWebView.clearFormData(); myWebView.getSettings().setSavePassword(false); myWebView.getSettings().setSaveFormData(false);
P2. If the WebView stores cookies, does it transfer cookies to other regular browsers on the phone (can the information stored in the cookie for the xyz website when opened with "WebView" be used when the user tries to open the website from another browser on the phone)?
Not. Information is not transmitted to other phone browsers.
Kamal
source share