aplying onPostExecute to onClickListener

前端 未结 1 1859
既然无缘
既然无缘 2021-01-29 10:12

i have made program which works with AsyncTask it prints a list of the JSON data when program is executed, but the problem is that i want it to execute when i press

1条回答
  •  走了就别回头了
    2021-01-29 10:56

    You can call your AsyncTask class inside your button listener by simply invoking new YourAsyncTaskName().execute(). Good Luck.

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