List of usage examples for android.os HandlerThread quitSafely
public boolean quitSafely()
From source file:Main.java
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2) public static void quitSafely(HandlerThread handlerThread) { if (handlerThread == null) { return;//from w ww.ja v a2s.c om } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { handlerThread.quitSafely(); } else { handlerThread.quit(); } }