Java tutorial
//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(); } } }