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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -