List of usage examples for android.webkit WebViewDatabase clearFormData
@Deprecated public abstract void clearFormData();
From source file:Main.java
public static void clearFormData(Context context) { WebViewDatabase db = WebViewDatabase.getInstance(context); if (db.hasFormData()) { db.clearFormData(); }/* w w w . j av a 2s . c o m*/ if (db.hasHttpAuthUsernamePassword()) { db.clearHttpAuthUsernamePassword(); } if (db.hasUsernamePassword()) { db.clearUsernamePassword(); } }
From source file:com.dish.browser.activity.BrowserActivity.java
@SuppressWarnings("deprecation") public void clearHistory() { this.deleteDatabase(HistoryDatabase.DATABASE_NAME); WebViewDatabase m = WebViewDatabase.getInstance(this); m.clearFormData(); m.clearHttpAuthUsernamePassword();/*from w w w . j a v a 2s. c o m*/ if (API < 18) { m.clearUsernamePassword(); WebIconDatabase.getInstance().removeAllIcons(); } if (mSystemBrowser) { try { Browser.clearHistory(getContentResolver()); } catch (NullPointerException ignored) { } } Utils.trimCache(this); }