I'm working on a Syllabus application for my project in Android which shows a list of subjects in a RecyclerView
. When clicked on a subject, it downloads the image from its URL and displays it in the ImageView
. I need a code which stores the Image in cache once it is downloaded, so the user doesn't need to download the image from the URL again and again.
Asked
Active
Viewed 240 times
0

Sayem
- 78
- 1
- 10

Faisal Khan
- 3
- 2
-
Possible duplicate of [How to store images in Cache Memory](https://stackoverflow.com/questions/6580418/how-to-store-images-in-cache-memory) – Pospolita Nikita Jun 23 '18 at 11:34
3 Answers
2
For downloading images, you can use Glide library. This library lets you download the image efficiently and cache them also so you don't have to manually do it.

Amit Kumar
- 1,428
- 2
- 12
- 20
0
Use Picasso library. Reference - https://guides.codepath.com/android/Displaying-Images-with-the-Picasso-Library

Suraj
- 165
- 2
- 11
0
if you have many images to load in your app i offer to use external storage instead of cache because if your app cache filled up android deletes all applications caches

puya ars
- 327
- 2
- 9