views:

34

answers:

2

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.

A: 

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

BlackDragonBE
A: 

Check this session out, it has some interesting info on this topic http://code.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html

Tho he doesn't speak about cache expiration, but it's a good start.

Scythe