Gabriel Simões wrote: > Hello, > > Today, while debugging and app that uses AsyncTask to record audio and > update UI I noticed that everytime that an AsyncTask object ends > running (finishes doInBackground() and onPostExecute() or > onCancelled()) it´s thread stays alive (running status). > At least for me that should not be the behavior of the class since the > doInBackground task may not stay running forever (as an example the > android manual says that a status bar should be updated by an > asynctask, and it won´t last for the whole app running time). > > Is there anything I´m missing, as a method to destroy it, or should I > just ignore and keep creating threads as I need and the VM will handle > them as it needs resources?
AsyncTask uses a thread pool and manages that itself. You do not have to worry about those threads, AFAICT. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

