You can name the stream AsyncTaskat the beginning of your function doInBackground:
public void doInBackground(Params... params) {
Thread.currentThread().setName("Foo (AsyncTask)");
}
The specified name will be displayed in the Eclipse debug window, as well as a list of threads in the DDMS perspective.
source
share