阅读背景:

android webview cookie 同步时有时候会出现同步不成功的问题解决

来源:互联网 
这个问题不是随时重现,我们在同步之前会先删除所有之前的cookies,调用:
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP /*&& method != null*/){cookieManager.removeSessionCookies(new ValueCallback() {@Overridepublic void onReceiveValue(Boolean value) {Log.d(TAG, "onReceiveValue value:"+value);}});}else{ cookieManager.removeSessionCookie();}if(Bui



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: