Using AsyncTask for android network connection

后端 未结 3 1390
时光说笑
时光说笑 2020-12-03 16:32

I am having some trouble using AsyncTask as I have never come across it before and have no clue what I am doing with it.

Basically I am getting a force

3条回答
  •  难免孤独
    2020-12-03 17:00

    By checking the documentaion here..

    You need to put the create connection part in the doInBackground.. then in the onPostExecute do whatever you want to update the ui.

提交回复
热议问题