I have a service that has its own thread running on background. I\'d like to kill that service including the thread.
I created the thread like this and run it.
The method Thread.stop() is deprecated, you can use Thread.currentThread().interrupt(); and then set thread=null.
Thread.stop()
Thread.currentThread().interrupt();
thread=null