How to use Android's CacheManager? How to use Android's CacheManager? android android

How to use Android's CacheManager?


I don't think the CacheManger can be used outside of a WebView as noted in this bug reporthttp://code.google.com/p/android/issues/detail?id=7222


I came across this issue awhile ago as well. The cache manager is only for the webview and not really useful outside of that. For my application I needed to cache xml responses and images so I ended up writing my own cache manager to accomplish that. Nothing too terrible but certainly not as easy as using a would-be built-in one.

If you have any questions about the specifics, add a comment to my post, I check back frequently.