I am trying to cache data after accessing it from internet.
Take an example of Facebook where when we see the data with internet connection, it will cache it somewhere. Suppose we disconnect from internet then again if we open fb app then it will loads the data whatever we had seen. After reloading it will check for internet connection.
In the same way I want to achieve this.
I have some data to access from internet with images,text in RecyclerView. I want to cache this data into device memory so that if user don't have internet connection then also the user should be displayed the data whatever they had seen before reloading.