Example usage for android.webkit WebViewDatabase hasUsernamePassword

List of usage examples for android.webkit WebViewDatabase hasUsernamePassword

Introduction

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

Prototype

@Deprecated
public abstract boolean hasUsernamePassword();

Source Link

Document

Gets whether there are any saved username/password pairs for web forms.

Usage

From source file:Main.java

public static void clearFormData(Context context) {
    WebViewDatabase db = WebViewDatabase.getInstance(context);
    if (db.hasFormData()) {
        db.clearFormData();/* www  .  j ava  2 s  .  c om*/
    }
    if (db.hasHttpAuthUsernamePassword()) {
        db.clearHttpAuthUsernamePassword();
    }
    if (db.hasUsernamePassword()) {
        db.clearUsernamePassword();
    }
}