Issue
So I want to find the way to load a file(.txt and .html) in the app from Firebase Storage in offline mode except for the first time. This means a user will load the data for the first time in online mode and can access that data another time with offline mode. So is there any method to do it?
Solution
This means a user will load the data for the first time in online mode and can access that data another time with offline mode. So is there any method to do it?
For sure, there is. There is a library called Glide for Android, that can help you achieve what you want:
Glide is a fast and efficient open-source media management and image loading framework for Android that wraps media decoding, memory and disk caching, and resource pooling into a simple and easy-to-use interface.
This means that you can load an image once and then read it from the cache.
Answered By - Alex Mamo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.