当我致电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)
有人可以指出我为什么会这样,以及如何解决它?
提前多多感谢!