首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

Only the original thread that created a view hierarchy can touch its views<已解

2012-09-24 
Only the original thread that created a view hierarchy can touch its views已解决子线程不可以 更新

Only the original thread that created a view hierarchy can touch its views<已解决>

子线程不可以 更新UI主线程

 new Thread() {    public void run() {        mHandler.sendmessage(new Message());    } final Handler mHandler = new Handler() {                 public void handleMessage(Message msg) {                     super.handleMessage(msg);                  //更新具体的线程? ? ? ? ? ? ? ? ? ? ? ? ? ? }             };  

热点排行