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

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -