I'd like to know how to prevent an Android WebView form asking to save the "password-data" from a html form?
May you can help me out on this?
1) android:longClickable="false" 2) webView. setLongClickable(false); 3) webView. setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { return true; } });
Try this:
Get webview settings with .getSettings()
and set this method setSavePassword(false)
public void setSavePassword (boolean save)
http://developer.android.com/reference/android/webkit/WebSettings.html#setSaveFormData(boolean)
For those using API Level 18, please see Kirk Hammet's answer below.
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