Wednesday, June 1, 2011

getCacheTotalSize causes NullPointerException

After starting to use a new AdMob SDK I noticed the following exception in the Android Market Developer Console:
at android.webkit.WebViewDatabase.getCacheTotalSize(
at android.webkit.CacheManager.trimCacheIfNeeded(
at android.webkit.WebViewWorker.handleMessage(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(

I solved it using a suggestion I found online. You can use other ways to disable the ads, depending which SDK you use:

Anyhow, as far as I remember this issue was fixed in the Android OS 2.3+, so until this OS version will catch you have to disable the ads to people with this problem.

No comments: