boolean isMainThread = Looper.myLooper() == Looper.getMainLooper(); 如果isMainThread == true表明当前代码在UI线程中执行