3

In my android app, webview is used to open up a web page. The webpage has a login page and search website box. I can see the values being searched and login/ password info is being pre-populated when someone revisit the site using app. How Can this be avoided?

Kamal
  • 5,462
  • 8
  • 45
  • 58
  • see this maybe helpful : [Disabling caching, cookies and everything else in a WebView](http://stackoverflow.com/questions/4949963/disabling-caching-cookies-and-everything-else-in-a-webview) – ρяσѕρєя K Mar 22 '12 at 12:14

1 Answers1

6

Was able to stop autofill of forms and login information save using

myWebView.clearFormData();
myWebView.getSettings().setSavePassword(false);
myWebView.getSettings().setSaveFormData(false);
Mark Coleman
  • 40,542
  • 9
  • 81
  • 101
Kamal
  • 5,462
  • 8
  • 45
  • 58