public static Bitmap getBitmapFromDiskLurCache(DiskLruCache diskLruCache, String key) throws IOException { DiskLruCache.Snapshot snapshot = diskLruCache.get(key); if (snapshot == null) return null; InputStream inputStream = snapshot.getInputStream(0); return BitmapFactory.decodeStream(inputStream); }