android.view.viewrootimpl$calledfromwrongthreadexception only the original that created a view hierarchy can touch its views分清UI线程和工作线程UI的更改只能在UI线程中完成参考:http://chen592969029.iteye.com/blog/1467237
用handler时,出现这个异常。handler的创建需要在主线程中,当在子线程中创建handler时会报这个错误我是在子线程中创建Toast时报错的参考http://blog.csdn.net/stonecao/article/details/6417364 http://www.oschina.net/question/163910_31439
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号