if (Looper.myLooper() == Looper.getMainLooper()) { // UI主线程} else { // 非UI主线程}

更多相关文章

  1. Android内核与主线linux内核的比较(Android对Linux内核的改动你知
  2. Android切换主线程更新UI方法总结
  3. Android的Handler机制详解3_Looper.looper()不会卡死主线程
  4. FregServer进程,发送BC_TRANSACTION,唤醒ServiceManager进程,返回BR
  5. 在非主线程中不能操作主线程中的View
  6. Android中UI主线程与子线程
  7. Android UI主线程和子线程
  8. Android之 UI主线程ZT

随机推荐

  1. android多线程开发
  2. Android(安卓)ProgressBar 各种样式大全
  3. 功能强大的android相机框架
  4. Android数据存储总结 之二
  5. Android之数据统计
  6. Android面试题集
  7. 聊聊android界面适配
  8. 开发商为什么仍然忽视Android系统?
  9. Android(安卓)判断应用前后台运行状态并
  10. android listview长按,单击各种事件捕捉