1

I'm getting ISE when I call CookieManager.getInstance().getCookie(url)

I/dalvikvm( 1022): java.lang.IllegalStateException: Call CookieSyncManager::createInstance() or create a webview before using this class
I/dalvikvm( 1022):     at android.webkit.JniUtil.checkInitialized(JniUtil.java:45)
I/dalvikvm( 1022):     at android.webkit.JniUtil.getDatabaseDirectory(JniUtil.java:66)
I/dalvikvm( 1022):     at android.webkit.CookieManager.nativeGetCookie(Native Method)
I/dalvikvm( 1022):     at android.webkit.CookieManager.getCookie(CookieManager.java:496)
I/dalvikvm( 1022):     at android.webkit.CookieManager.getCookie(CookieManager.java:460)

Could anyone please point me out why it happens and how to resolve it?

Thanks a lot in advance!

faceman
  • 1,318
  • 11
  • 20
Green Ho
  • 881
  • 3
  • 14
  • 27

0 Answers0