Example usage for android.os HandlerThread interrupt

List of usage examples for android.os HandlerThread interrupt

Introduction

In this page you can find the example usage for android.os HandlerThread interrupt.

Prototype

public void interrupt() 

Source Link

Document

Interrupts this thread.

Usage

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;
    }
}