Open NightWhistler opened 11 years ago
Closing this for now as I've gone with a SoftReference based approach.
And today I learned that on Android a SoftReference pretty much behaves as a WeakReference, making it completely and utterly useless.
LruCache might still be useful for the Catalog and Library, but for the TextLoader we'll need a more sophisticated approach.
This article
http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html
describes use of a LruCache and a disk-based cache for caching of images. This approach would probably work well both in the TextLoader and for the Catalog / library.