Skip to content

Instantly share code, notes, and snippets.

@duanhong169
Created March 26, 2013 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duanhong169/5244025 to your computer and use it in GitHub Desktop.
Save duanhong169/5244025 to your computer and use it in GitHub Desktop.
public void addBitmapToMemoryCache(String key, Bitmap bitmap) {
if (getBitmapFromMemCache(key) == null) {
mMemoryCache.put(key, bitmap);
}
}
public Bitmap getBitmapFromMemCache(String key) {
return mMemoryCache.get(key);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment