You can just call Thread.interrupt()  make sure on any Thread.sleep()
calls you catch the interruped exception.

public void run () {
    while (!this.interrupted() ) {
        doSomeWork();
    }
}

-Moto!

On Jun 17, 6:40 am, brijesh <[email protected]> wrote:
> 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 [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

Reply via email to