How to implement caching in android app for REST API results?

前端 未结 3 2158
失恋的感觉
失恋的感觉 2020-12-14 02:52

My android app gets its data using REST API. I want to have client side caching implemented. Do we have any inbuilt classes for this?

if not, is these any code that

3条回答
  •  臣服心动
    2020-12-14 03:40

    Now awesome library Volley released on Google I/O 2013 which helps for improve over all problems of calling REST API:

    Volley is a library,it is library called Volley from the Android dev team. that makes networking for Android apps easier and most importantly, faster. It manages the processing and caching of network requests and it saves developers valuable time from writing the same network call/cache code again and again. And one more benefit of having less code is less number of bugs and that’s all developers want and aim for.

    Example for volley: technotalkative

提交回复
热议问题