On Sep 1, 9:54 am, Streets Of Boston <[email protected]> wrote: > that is pretty much the safe of doing this. In this way, although a > bit cumbersome, you know how your thread will be terminated and that > your app's state is in a predictable state. Calling 'stop' on a thread > is deprecated, because it can put your app in an unpredictable state.
None of the deprecated thread operations are implemented. Finding a better alternative is mandatory. :-) > Also, try calling 'interrupt' on the thread. This may cause > synchronized 'wait()' statements, i.e. sleeping threads, to wake up > and speed up your thread-shutdown. Again, you need to catch and handle > InterruptedExceptions to properly handle this. InterruptedException is a checked exception, so there must be "catch" blocks everywhere. The trick is that most people are probably in the habit of ignoring it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

