aplying onPostExecute to onClickListener

前端 未结 1 1864
既然无缘
既然无缘 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)
提交回复
热议问题