Name the Thread of an AsyncTask

前端 未结 2 1930
执念已碎
执念已碎 2020-12-17 08:10

Is it possible to give a name to an AsyncTask\'s background thread, as for normal Threads in Java:

Thread(Runnable target, String name) 

I

2条回答
  •  一向
    一向 (楼主)
    2020-12-17 09:02

    Why can't you extend the AsyncTask I dont understand.

    I extend my AsyncTask thousand times with debugger shows me which AsyncTask is bitching.

    public class MyAsyncTask extends AsyncTask{
    }
    

    like so

提交回复
热议问题