Wednesday, February 2, 2011

[android-developers] Re: Can't properly stop a thread

Thank you Kostya. As you have nicely noticed my network code doesn't
'see' any flag so that's not an option for me. Setting the handler to
null actually came to my mind but it seem a little bit 'dirty'. What
worries me is that if I exit my application, the thread is still
working, trying to connect and only after finishing that it can 'see'
that it was stopped from outside and doesn't want to communicate with
UI :/

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate