CookieSyncManager.createInstance(this);
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.setAcceptCookie(true);
for (int i = 0; i < cookieArray.length; i++) { // cookieArray是多个cookie的数组变量
cookieManager.setCookie(mCurrentURL, cookieArray[i] + ";MaxAge=3600" + ";Domain=.163.com" + ";Path = /");
}
原文地址:http://8840150.blog.51cto.com/8830150/1702488