I am using Mark Murphy’s ThumbnailAdapter in a project to cache and display images from the web in a list view. It works well, except that it caches to internal memory. I can’t figure out how to modify it to cache to external memory.
Any advice?
cwac-thumbnail: http://github.com/commonsguy/cwac-thumbnail
While the
ThumbnailAdapteris a nice interface, the caching and stuff underneath it is a big steaming pile of…rather unimpressive code. It’s on my list of things to rewrite, someday.That being said, you supply the root to the cache via the constructor to the
SimpleWebImageCache, so you should be able to use a path on the SD card for that. You give theSimpleWebImageCacheto theThumbnailAdaptervia theThumbnailAdapterconstructor.