Android LruCache suggest change

Adding a BitmapResource to the cache

To add a resource to the cache you must provide a key and the resource. First make sure that the value is not in the cache already

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