Adding a BitmapResource to the cache
suggest changeTo add a resource to the cache, provide a key and the bitmap. Skip the write when that key is already cached:
public void addResourceToMemoryCache(String key, Bitmap resource) {
if (memoryCache.get(key) == null)
memoryCache.put(key, resource);
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents