Only the original thread that created a view hierarchy can touch its views:

来源:互联网 发布:电影知无涯者拉马努金 编辑:程序博客网 时间:2024/05/01 00:22

       报错:Only the original thread that created a view hierarchy can touchits views:

       原因:在非主线程中了进行了操作UI线程(主线程)中比如:UI更新的操作。导致的报错

       解决方法:使用handler 或者asynctask等方法

 

0 0
原创粉丝点击