Example usage for android.webkit WebViewDatabase hasHttpAuthUsernamePassword

List of usage examples for android.webkit WebViewDatabase hasHttpAuthUsernamePassword

Introduction

In this page you can find the example usage for android.webkit WebViewDatabase hasHttpAuthUsernamePassword.

Prototype

public abstract boolean hasHttpAuthUsernamePassword();

Source Link

Document

Gets whether there are any saved credentials for HTTP authentication.

Usage

From source file:Main.java

public static void clearFormData(Context context) {
    WebViewDatabase db = WebViewDatabase.getInstance(context);
    if (db.hasFormData()) {
        db.clearFormData();//from   ww  w .j  a va  2  s  .co  m
    }
    if (db.hasHttpAuthUsernamePassword()) {
        db.clearHttpAuthUsernamePassword();
    }
    if (db.hasUsernamePassword()) {
        db.clearUsernamePassword();
    }
}