Created
March 26, 2013 09:01
-
-
Save duanhong169/5244025 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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