I started an AsyncTask. Every seems to be OK and I checked that I get to the end of the task in doInBackground. onPostExecute is called too.
The problem is that I keep seeing in the list of the thread in Eclipse my AsyncTask and if I started again I see a second copy.
Shouldn’t the thread be termintated at the end of onPostExecute()?
I have also found this thread about the same problem.
It does not give a definitive answer though.
Thanks
Given that you haven’t actually done something wrong, the presence of the
Threaddoesn’t signal that anything is necessarily wrong. TheAsyncTaskuses an internal thread pool and the threads can be kept around for further future use without the overhead of Thread creation and invocations. So it’s entirely possible that everything is just fine.