Android的UI组件不是线程安全的,不应该在worker线程操纵UI
2011-07-05 01:01
507 查看
Additionally, the Andoid UI toolkit is not thread-safe. So, you must not manipulate your UI from a worker thread—you must do all manipulation to your user interface from the UI thread. Thus, there are simply two rules to Android's single thread model:Do not block the UI thread
Do not access the Android UI toolkit from outside the UI thread
UI组件不是线程安全的,所以不应该在worker线程操纵UI。
Do not access the Android UI toolkit from outside the UI thread
UI组件不是线程安全的,所以不应该在worker线程操纵UI。
相关文章推荐
- 为什么说android UI操作不是线程安全的 分类: Android 2014-09-23 21:08 1357人阅读 评论(0) 收藏 举报 目录(?)[+] 可能在非UI线程中刷新界面的时候,U
- Android 实战之UI线程和Worker线程交互
- Android Studio——为什么说android UI操作不是线程安全的
- 由UI刷新谈到线程安全和Android单线程模型
- 为什么说android UI操作不是线程安全的
- 由UI刷新谈到线程安全和Android单线程模型
- android UI操作不是线程安全的
- 为什么说android UI操作不是线程安全的
- Android高手进阶教程(十九)之---Android开发中,使用线程应该注意的问题!
- Android开发中,使用线程应该注意的问题!
- android中子线程更新UI的方式浅析
- Android中UI线程与后台线程交互设计的5种方法
- Android中子线程真的不能更新UI吗?
- Android高手进阶教程(十九)之---Android开发中,使用线程应该注意的问题!
- Android 线程中更新UI
- Android中高效的显示图片 - 非UI线程加载
- Android线程模型解析(包括UI的更新) .
- android中UI线程与后台的交互方式详解
- Android中UI线程与后台线程交互设计
- android子线程更新UI,与主Thread一起工作