android - CookieManager not saving cookies -


when execute following code:

cookiesyncmanager.createinstance(activity);  cookiemanager cookiemanager = cookiemanager.getinstance(); cookiemanager.setacceptcookie(true);  webview.setwebviewclient(new webviewclient() {     @override     public void onreceivedhttpauthrequest(webview view, httpauthhandler handler,                              string host, string realm) {         log.d(utils.tag, "there cookies: " + cookiemanager.hascookies());         handler.proceed("user","pass");     } } webview.loadurl("https://..."); 

on jellybean "there cookies: true" while on gingerbread "there cookies: false"

it seems on gingerbread cookies (one in case) not saved webview, web page refuses log me in because cookie not passed in headers during authentication.

the same happens when using cookiesyncmanager.

also don't know it can relevant code executed fragment using android support library.

has had problem before?

thanks.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -