Question

In iOS Development there is three20 which takes care of all the caching (lists, webviews etc.) but is there something similar to this which takes care of the caching automatically? Or would we have to do this all by ourselves? If so what is the recommended way? Sqlite Database? Shared Prefs?

The thing is that we have over 10 different views (including lists, webviews and more lists) and we are loading data from the web. We want to show the cached data if it could not be loaded for a certain time.

Thanks alot for your help!

Was it helpful?

Solution

WebView might have caching enabled, but it is not so with other views.You have to implement your own cache. However since SQLite is available on android, is pretty easy to implement a DB based cache. For example DataCache.java in this project. Just make it a global singleton in Application class and use from anywhere in your code.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top