On Thu, Jun 17, 2010 at 6:37 AM, brijesh masrani <masrani.brij...@gmail.com> wrote: > I want to stop currently running thread but -Thread.stop() > -Thread.destroy() are DEPRECATED so can any one tell me how to stop the > Thread
I heartily recommend _Java Concurrency in Practice_: http://www.javaconcurrencyinpractice.com/ The cleanest way is to have short-running threads, such that you do not need to stop them. The next-cleanest way is to let whatever is running inside of the thread know to stop doing its work, so it can exit the run() method and let the thread terminate on its own. -- Mark Murphy CommonsWare mmur...@commonsware.com http://commonsware.com -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en