I have a thread inside an Activity.
Is the thread killed by the system when the Activity terminates, or do I need to manually kill it (say, in onDestory())?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe that the accepted answer posted here, should answer your question.
How does Android handle background threads when leaving an Activity?
i.e. No, Android does not manually kill threads that you create yourself. You need to clean them up. See the link above for the full discussion.