Android offline working ability for an app that uses rest api

  android, caching, offline-caching, rest

I would like my app to be able to work as both Online and Offline.

I have a REST API and I’d like to request API one time and then store data on the phone locally, and when new data is added, I want to update both local storage and API (if it’s online). I also want to request from local mostly so the app would request as less as possible to API.

The point is I also want to encrypt data while storing them in phone.

So, what practice do you offer me to make it real in best way?


Source: Android Questions