Example usage for android.webkit WebViewDatabase hasFormData

List of usage examples for android.webkit WebViewDatabase hasFormData

Introduction

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

Prototype

@Deprecated
public abstract boolean hasFormData();

Source Link

Document

Gets whether there is any saved data 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();/*w w  w. ja v  a  2  s.co m*/
    }
    if (db.hasHttpAuthUsernamePassword()) {
        db.clearHttpAuthUsernamePassword();
    }
    if (db.hasUsernamePassword()) {
        db.clearUsernamePassword();
    }
}