android kill specific thread on action bar event
there are multiple ways you can do this,couple of them can be like
- Instead of Thread use TimerTask and call timeTask.cancel() - for interrupting
- In the run() method of the thread, keep checking a boolean value to determine whether the thread should be terminated and then you can call interrupt or better throw an Exception