[android-developers] Re: Stopping a long-running thread when a service is destroyed

2012-03-04 Thread Romain Guidoux
On 4 mar, 20:21, Mark Murphy mmur...@commonsware.com wrote: Active threads are not eligible for GC, as they are held by the OS. Oh ok, I did not know that, this is very interesting. On Sun, Mar 4, 2012 at 8:04 AM, Romain Guidoux romain.guid...@gmail.com wrote: Why do you think you have to

Re: [android-developers] Re: Stopping a long-running thread when a service is destroyed

2012-03-04 Thread Mark Murphy
On Sun, Mar 4, 2012 at 3:44 PM, Romain Guidoux romain.guid...@gmail.com wrote: Well, I did not absolutely wanted to wait in the onDestroy() method, but I wanted my thread stuff to terminate in a good and safe state. But now I know that a running thread cannot be GC, I have no reason to wait