Hi, While working on an an application i noticed that the thread count keeps growing all the time AsyncTask Threads remain open for some reason (im sure they finished proccesing and exited) i have no idea why i keep creating more threads of this type and they keep running indefinitely. is there any way to verify that these threads are terminated on complition? are there any known issues with AsyncTasks threads remaing open?
When running this:
public class DoNothingTask extends AsyncTask<Void, Void, Void> {
@Override
protected Void doInBackground(Void... params) {
// TODO Auto-generated method stub
return null;
}
}
i see in the debbuger a new thread for each time i do new DoNothingTask().execute(null);
as folows
Thread[<ThreadNumber>AsyncTask#1](running)
, my question is why is this? my application relies allot on AsyncTask and i cant have a new thread created and stay alive after each task.
Thanks, Totem