How to store json object to shared preferences?

前端 未结 8 1330
栀梦
栀梦 2020-12-21 22:53

I am creating an application,In my app I am getting response and displaing it in custom alert dialog, Till here it works fine, Now what I am trying to do is if user selects

8条回答
  •  既然无缘
    2020-12-21 23:22

    You can easily save your JSON file completely as a string variable with a key in shared preferences and pars it when you aim to read it again.

提交回复
热议问题