-
public class PushImageCacheStatic helper to manage cache for push downloaded images
-
-
Method Summary
Modifier and Type Method Description static voidstoreImageInCache(Context context, String identifier, Bitmap image)Store the given image into cache. static BitmapgetImageFromCache(Context context, String identifier)Get image from cache if available. static StringbuildIdentifierForURL(String url)Build a file identifier out of the url of the file (simple md5) -
-
Method Detail
-
storeImageInCache
static void storeImageInCache(Context context, String identifier, Bitmap image)
Store the given image into cache. Identifier should be made using buildIdentifierForURL if it comes from an URL
-
getImageFromCache
static Bitmap getImageFromCache(Context context, String identifier)
Get image from cache if available. Identifier should be made using buildIdentifierForURL if it comes from an URL
-
buildIdentifierForURL
static String buildIdentifierForURL(String url)
Build a file identifier out of the url of the file (simple md5)
-
-
-
-