clear Data from WebViewDatabase - Android android.webkit

Android examples for android.webkit:WebViewDatabase

Description

clear Data from WebViewDatabase

Demo Code


//package com.java2s;
import android.content.Context;

import android.webkit.WebViewDatabase;

public class Main {
    public static void clearData(Context context) {
        WebViewDatabase.getInstance(context).clearFormData();
        WebViewDatabase.getInstance(context).clearUsernamePassword();
        WebViewDatabase.getInstance(context)
                .clearHttpAuthUsernamePassword();
    }/*from w ww.  j  a  v a2s  .  c o  m*/
}

Related Tutorials