Use asynctask to call a function in android

后端 未结 3 799
误落风尘
误落风尘 2021-01-21 16:55

As below code shows I have a function named record() I want to call this function with asynctask but I do not know how to work with asynctask, record function takes

3条回答
  •  清酒与你
    2021-01-21 17:31

    Make AsyncTask Class and write code there and call your AsyncTask Class by new AsyncTaskClass().execute();

提交回复
热议问题