Standard way to cache data in Android?
I'm confused about how to cache data in Android. I've seen many people implement their own caching (for example, in the droidfu project), but Android seems to have its own caching system responsecache
Is there any reason not to use Android cache?
What is the standard method for caching urlconnection responses (text, data, JSON...), and where can I find examples?
thank you
resolvent:
>You cannot control the size of the cache or when to clear objects (as far as I know) > you cannot set the cache to an SD card
For small web service requests, responsecache is sufficient and is the standard method to cache the original response. You need your own cache only when dealing with large objects
Or you can
>Serialize data and save it to a local file > for basic data, if it exists for a long time, you can save it in SharedPreferences