Adding a BitmapResource to the cache

suggest change

To 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);
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents