Search code examples
androidandroid-webviewpassword-protection

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


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?


Solution

  • 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.