You can rename the current thread from the code that runs in the thread. For example, add the following code to your doInBackground() function:
String oldName = Thread.currentThread().getName(); Thread.currentThread().setName("MY-ASYNC"); ... <your code here> ... Thread.currentThread().setName(oldName);
source share