Пример #1
0
 public void DisplayImage(String productid, Activity activity, ImageView imageView) {
   imageViews.put(imageView, productid);
   Bitmap bitmap = memoryCache.get(productid);
   if (bitmap != null) {
     imageView.setImageBitmap(bitmap);
   } else {
     queuePhoto(productid, activity, imageView);
     imageView.setImageBitmap(null);
   }
 }
Пример #2
0
 public void clearCache() {
   memoryCache.clear();
   fileCache.clear();
 }