>From within the thread, "throw new ThreadDeath();" (which is what stop() does). Or anything else that causes it to exit out of the Runnable.run() method.
Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com > -----Original Message----- > From: [email protected] [mailto:android- > [email protected]] On Behalf Of brijesh > Sent: Thursday, June 17, 2010 3:40 AM > To: Android Developers > Subject: [android-developers] Thread Problem > > Hello, > > 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 > > > > -- > Regards, > Brijesh Masrani > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android- > [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 -- 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

