Android - Download JSON data and save to shared preferences

后端 未结 5 1095
遥遥无期
遥遥无期 2021-01-23 19:11

I\'m reading JSON data from a PHP Service and everytime the version of that JSON changes, I want to store it on Android (replace the old data with the new one), the JSON is used

5条回答
  •  情深已故
    2021-01-23 20:01

    It's Depend on your data.

    • If your data should be dynamic and change frequently then you must use JOSN.
    • If YOUR data is not Not regular update and not a large size then store in shared preferance.
    • if your data large then store in database.

    Now you have to decide which one you select.

提交回复
热议问题