Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;

import android.webkit.WebViewDatabase;

public class Main {

    public static void clearFormData(Context context) {
        WebViewDatabase db = WebViewDatabase.getInstance(context);
        if (db.hasFormData()) {
            db.clearFormData();
        }
        if (db.hasHttpAuthUsernamePassword()) {
            db.clearHttpAuthUsernamePassword();
        }
        if (db.hasUsernamePassword()) {
            db.clearUsernamePassword();
        }
    }
}