Keep Updating New JSON in Android

前端 未结 2 848
野的像风
野的像风 2021-01-26 04:47

I have JSON that keep changing , I need in android to keep updating the changes , how i can do this ?

my Android code is

r = getImage();
JSONObject data          


        
相关标签:
2条回答
  • 2021-01-26 05:21

    Use count down timer .. If you want to update it frequently.. for doing it in Background use AsyncTask

    0 讨论(0)
  • 2021-01-26 05:44

    JSON is backdated, try GSON which is developed by google using JSON api. It provides very good functionality so that this class is converted to string in json format and the other end the json string dematerialized and convert it to class format. So that it is very easy to handle. All json processing is done into GSON api. Try this gson

    Hope you can do it as your target.

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