Problems in Calling AsyncTask from IntentService

后端 未结 5 1448
别跟我提以往
别跟我提以往 2021-01-05 22:24

I have created IntentService class and performing asyncTask but getting exception when onPreExecute() is called at this code line

5条回答
  •  [愿得一人]
    2021-01-05 22:31

    It is not a good practice to use AsyncTask inside IntentService sub-classes or even JobIntentService sub-classes. In the case of JobIntentServices it causes crash too.

提交回复
热议问题