1、 Looper.myLooper() == Looper.getMainLooper() 2、 Thread.currentThread() == Looper.getMainLooper().getThread()