You don't. The thread is in a pool to be available for future async tasks.
On Thu, Sep 23, 2010 at 3:17 PM, John Gaby <[email protected]> wrote: > I am using AsyncTask. When I call the 'execute' function, a new > thread is created. However, when the doInBackground function returns, > the thread remains (seemingly forever), even though I have no > references to the AsyncTask object anymore. This is true, even if I > force a garbage collection. > > How do I get the AsyncTask thread to exit? > > Thanks > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

