Best way to request data from server

后端 未结 3 2001
离开以前
离开以前 2020-12-20 06:53

I need to fetch some data from my server in order to make my app work. In order to do that, I will be using POST. As far as I know, I have to request that data in a thread w

3条回答
  •  天命终不由人
    2020-12-20 07:19

    Better use an AsyncTask to propagate the data to your UI thread, just use onPostExecute() to set the result on your activity's class.

提交回复
热议问题