I had come across, the libraries like volley for web-service call and picasso for images. Both, uses cache to save data.
How exactly the caching works, with these libraries. Let's say after api call, the data is cached using volley, will it be available in all other activities, while switching back and forth?
If once, the data is fetched and saved in cache using volley in activity A and then i switch to activity B and when i come back to A, will the cached data will be used by the volley or a new request will be fired.
Suppose, if it used the cached data, then in the scenario where the data-set is changed on the server,in such scenario how the new data set will appear on device.
Same with Picasso.
Any help or suggestion would be appreciated,as i am new to android.