How to save online data with SharedPreference in Android

后端 未结 1 1329
你的背包
你的背包 2021-01-29 07:13

I want to show 3 fragments in my Activity and load data from json in any fragments! I need to show website d

相关标签:
1条回答
  • 2021-01-29 07:29

    you can save the origin JsonObject to SharedPreference with toString() method. When offline, read the String from SharedPreference and then recreate JsonObject with that String, and process it as you just get it from the server

    0 讨论(0)
提交回复
热议问题