How to run the same asynctask more than once?

前端 未结 12 2092
难免孤独
难免孤独 2020-12-01 03:32

I have my asyncTask run when the activity first starts, then if network connectivity is not available then i have a refresh button that tries to run the asyncTask to try aga

12条回答
  •  囚心锁ツ
    2020-12-01 04:14

    Just make a new call like new asyncTask().execute(); You must create a new object to restart that task.

提交回复
热议问题