当前位置: 首页>>代码示例>>Java>>正文


Java WebViewDatabase.clearHttpAuthUsernamePassword方法代码示例

本文整理汇总了Java中android.webkit.WebViewDatabase.clearHttpAuthUsernamePassword方法的典型用法代码示例。如果您正苦于以下问题:Java WebViewDatabase.clearHttpAuthUsernamePassword方法的具体用法?Java WebViewDatabase.clearHttpAuthUsernamePassword怎么用?Java WebViewDatabase.clearHttpAuthUsernamePassword使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.webkit.WebViewDatabase的用法示例。


在下文中一共展示了WebViewDatabase.clearHttpAuthUsernamePassword方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: clearHistory

import android.webkit.WebViewDatabase; //导入方法依赖的package包/类
@SuppressWarnings("deprecation")
public void clearHistory() {
	this.deleteDatabase(HistoryDatabase.DATABASE_NAME);
	WebViewDatabase m = WebViewDatabase.getInstance(this);
	m.clearFormData();
	m.clearHttpAuthUsernamePassword();
	if (API < 18) {
		m.clearUsernamePassword();
		WebIconDatabase.getInstance().removeAllIcons();
	}
	if (mSystemBrowser) {
		try {
			//Browser.
			//Browser.clearHistory(getContentResolver());
		} catch (NullPointerException ignored) {
		}
	}
	Utils.trimCache(this);
}
 
开发者ID:NewCasino,项目名称:browser,代码行数:20,代码来源:BrowserActivity.java

示例2: cleanup

import android.webkit.WebViewDatabase; //导入方法依赖的package包/类
@Override
public void cleanup() {
    clearFormData();
    clearHistory();
    clearMatches();
    clearSslPreferences();
    clearCache(true);

    // We don't care about the callback - we just want to make sure cookies are gone
    CookieManager.getInstance().removeAllCookies(null);

    WebStorage.getInstance().deleteAllData();

    final WebViewDatabase webViewDatabase = WebViewDatabase.getInstance(getContext());
    // It isn't entirely clear how this differs from WebView.clearFormData()
    webViewDatabase.clearFormData();
    webViewDatabase.clearHttpAuthUsernamePassword();

    deleteContentFromKnownLocations(getContext());
}
 
开发者ID:mozilla-mobile,项目名称:focus-android,代码行数:21,代码来源:SystemWebView.java

示例3: clearDatabase

import android.webkit.WebViewDatabase; //导入方法依赖的package包/类
/**
 * Clear the web database
 */
public void clearDatabase() {
    WebViewDatabase database = WebViewDatabase.getInstance(getContext());
    database.clearHttpAuthUsernamePassword();
    database.clearFormData();
    database.clearUsernamePassword();
}
 
开发者ID:vic797,项目名称:prowebview,代码行数:10,代码来源:ProWebView.java

示例4: clearHistory

import android.webkit.WebViewDatabase; //导入方法依赖的package包/类
public static void clearHistory(@NonNull Context context, @NonNull HistoryModel historyModel) {
    historyModel.deleteHistory()
            .subscribeOn(Schedulers.io())
            .subscribe();
    WebViewDatabase m = WebViewDatabase.getInstance(context);
    m.clearFormData();
    m.clearHttpAuthUsernamePassword();
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2) {
        //noinspection deprecation
        m.clearUsernamePassword();
        //noinspection deprecation
        WebIconDatabase.getInstance().removeAllIcons();
    }
    Utils.trimCache(context);
}
 
开发者ID:XndroidDev,项目名称:Xndroid,代码行数:16,代码来源:WebUtils.java

示例5: clearHistory

import android.webkit.WebViewDatabase; //导入方法依赖的package包/类
public static void clearHistory(@NonNull Context context) {
    HistoryDatabase.getInstance().deleteHistory();
    WebViewDatabase m = WebViewDatabase.getInstance(context);
    m.clearFormData();
    m.clearHttpAuthUsernamePassword();
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2) {
        //noinspection deprecation
        m.clearUsernamePassword();
        //noinspection deprecation
        WebIconDatabase.getInstance().removeAllIcons();
    }
    Utils.trimCache(context);
}
 
开发者ID:javadtaghia,项目名称:DeeBrowser,代码行数:14,代码来源:WebUtils.java

示例6: clearAll

import android.webkit.WebViewDatabase; //导入方法依赖的package包/类
public static void clearAll(WebView webView) {
	clearCookie();
	if (webView != null) {
		webView.clearCache(true);
	}
	WebViewDatabase webViewDatabase = WebViewDatabase.getInstance(MainApplication.getInstance());
	webViewDatabase.clearFormData();
	webViewDatabase.clearHttpAuthUsernamePassword();
	WebStorage.getInstance().deleteAllData();
}
 
开发者ID:Mishiranu,项目名称:Dashchan,代码行数:11,代码来源:WebViewUtils.java


注:本文中的android.webkit.WebViewDatabase.clearHttpAuthUsernamePassword方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。