List of usage examples for android.os HandlerThread interrupt
public void interrupt()
From source file:org.ymkm.lib.controller.support.ControlledDialogFragment.java
@Override public void onDestroy() { super.onDestroy(); synchronized (this) { mHandler.removeCallbacksAndMessages(null); if (null != _handlerThread) { HandlerThread ht = _handlerThread; _handlerThread = null;/* ww w.j a v a 2s . com*/ ht.quit(); ht.interrupt(); } mHandler = null; mControllerMessenger = null; } }