Android examples for User Interface:WebKit
clear Cookies for WebKit
//package com.java2s; import android.content.Context; import android.webkit.CookieManager; import android.webkit.CookieSyncManager; public class Main { public static void clearCookies(Context context, String url) { CookieSyncManager.createInstance(context); CookieManager cookieManager = CookieManager.getInstance(); cookieManager.setAcceptCookie(true); cookieManager.removeSessionCookie(); cookieManager.removeAllCookie(); CookieSyncManager.getInstance().sync(); }/*w w w . j av a2 s . c o m*/ }