There is no real difference, except that the View.post is helpful when you don't have a direct access to the activity.

    public boolean post(Runnable action) {
Handler handler;
if (mAttachInfo != null) {
handler = mAttachInfo.mHandler;
} else {
// Assume that post will succeed later
ViewRoot.getRunQueue().post(action);
return true;
} return handler.post(action);
}
    public final void runOnUiThread(Runnable action) {
if (Thread.currentThread() != mUiThread) {
mHandler.post(action);
} else {
action.run();
}
}

最新文章

  1. CSS3写折纸
  2. PBOC金融IC卡,卡片与终端交互的13个步骤,简介-第一组(转)
  3. 13,SFDC 管理员篇 - 移动客户端
  4. 三、Spring——数据访问
  5. [ACM_数学] 大菲波数 (hdu oj 1715 ,java 大数)
  6. 用Java集合中的Collections.sort方法对list排序的两种方法
  7. 【原】NGUI中的UIRoot脚本功能
  8. react 资源汇总
  9. tomcat------https单向认证和双向认证
  10. Ubuntu下安装composer及配置
  11. [jquery备忘]
  12. 使用ViewPagerAdapter 页面引导适配器设置app启动页,引导页面的实现
  13. HTML5新增web存储方式
  14. websphere部署--web应用-以自己的项目为例
  15. MongoDB(一)环境搭建与初始配置
  16. json文件格式详解
  17. Python 命令行工具 argparse 模块使用详解
  18. sass基础—属性嵌套以及跳出嵌套 @at-root
  19. java.awt.headless 模式
  20. [Robot Framework] SikuliLibrary的关键字执行依赖java进程,但是上次的java进程如果没有杀掉,robot framework控制台的日志出不来,怎么办?

热门文章

  1. /proc/version 的生成过程
  2. RequireJS 和 Sea.js
  3. 清理iOS中的“其他”空间垃圾文件
  4. 一图总结C++中关于指针的那些事
  5. WebRTC编译具体介绍
  6. ssd算法论文理解
  7. Link-based Classification相关数据集
  8. MySQL Migration Toolkit启动报jre错误
  9. [转]SpecFlow使用入门
  10. 基于Bootstrap样式的 jQuery UI 控件 (v0.5).