64.判断当前线程是否是主线程


/**
* 打印当前的线程
*/
private void printCurrentThread() {
LogUtil.e("isMainThread="+ (Looper.getMainLooper() == Looper.myLooper()));
}






原文地址:https://www.cnblogs.com/yutianran/p/5069636.html