Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android caching web service data

I'd like to make my Android app responsive, even when the network connection is not.

For certain calls, the data doesn't change that often, so I'd like to be able to retrieve the most recent XML response for a given call.

Ideally, I'd like to do this similar to how web caching works, hash the call/params, set rules as to expiry, etc.

like image 913
Kevin Avatar asked Nov 05 '22 07:11

Kevin


1 Answers

Can't you just save the received xml locally and then read that file when there's no internet connection?

like image 61
BlackDragonBE Avatar answered Nov 09 '22 02:11

BlackDragonBE