android - IllegalStateException: Call CookieSyncManager::createInstance() or create a webview before using this class -


i'm getting ise when call cookiemanager.getinstance().getcookie(url)

i/dalvikvm( 1022): java.lang.illegalstateexception: call cookiesyncmanager::createinstance() or create webview before using class i/dalvikvm( 1022):     @ android.webkit.jniutil.checkinitialized(jniutil.java:45) i/dalvikvm( 1022):     @ android.webkit.jniutil.getdatabasedirectory(jniutil.java:66) i/dalvikvm( 1022):     @ android.webkit.cookiemanager.nativegetcookie(native method) i/dalvikvm( 1022):     @ android.webkit.cookiemanager.getcookie(cookiemanager.java:496) i/dalvikvm( 1022):     @ android.webkit.cookiemanager.getcookie(cookiemanager.java:460) 

could please point me out why happens , how resolve it?

thanks lot in advance!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -