get Bitmap from Cache - Android App

Android examples for App:Cache

Description

get Bitmap from Cache

Demo Code


//package com.book2s;
import android.graphics.Bitmap;
import android.util.LruCache;

public class Main {
    private static LruCache<String, Bitmap> mCache;

    public static Bitmap getBitmap(String key) {
        return mCache.get(key);
    }/* w w w. j  a v  a  2 s.c o  m*/
}

Related Tutorials