How to store downloaded images in cache

Course Queries Syllabus Queries 3 years ago

3.11K 2 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago

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.

0 views
0 shares

profilepic.png
manpreet 3 years ago

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


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum