How do I cache images in local storage?

4 hours ago 4
ARTICLE AD BOX

I have an Android application with camera and album features. It can take high-resolution photos and display them in albums. The problem is that each photo can be several hundred MB, which significantly increases the loading time when the user accesses the album page. I'm using Coil, and with RAM caching, the loading is very fast after the first attempt. However, the cache is cleared after a certain time, and it needs to be reloaded when the user opens the album page again. I tried using disk caching with Coil, but I think Coil doesn't offer disk caching for local images. What's the best way to do this?

I keep my files in this location:

/storage/emulated/0/CameraApp/Album/

Thank you

Read Entire Article