jedgard
jedgard

Reputation: 868

How to implement offline mode on android

We load lots of data as JSON objects to some arrays in our application and this is handled while online. but now we would like to move to some kind of caching, how can we implement off line mode with Android?, is there an external storage I can write to?, there could be thousands of records.

Upvotes: 1

Views: 1715

Answers (1)

Andy Res
Andy Res

Reputation: 16043

You could use the LruCache for caching objects. Here's an example on how to cache bitmaps for example.

Upvotes: 1

Related Questions