读书人

Only the original thread that creat

发布时间: 2012-09-24 13:49:41 作者: rapoo

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);                  //更新具体的线程? ? ? ? ? ? ? ? ? ? ? ? ? ? }             };  

读书人网 >移动开发

热点推荐