标签:
public static boolean isInMainThread() { return Looper.myLooper() == Looper.getMainLooper(); }
Android 判断当前线程是否为主线程
原文地址:http://www.cnblogs.com/zhou-guobao/p/4742338.html