How to disable the "save password" dialog on an Android WebView?

aichingm picture aichingm · Jul 18, 2012 · Viewed 14.6k times · Source

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?

Answer

Nikola Despotoski picture Nikola Despotoski · Jul 18, 2012

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.