java.lang.RuntimeException:Can‘t create handler inside thread that has not called Looper.prepare()
2014-05-21 14:16
603 查看
用handler时,出现这个异常。
handler的创建需要在主线程中,当在子线程中创建handler时会报这个错误
我是在子线程中创建Toast时报错的
参考
http://blog.csdn.net/stonecao/article/details/6417364
http://www.oschina.net/question/163910_31439
handler的创建需要在主线程中,当在子线程中创建handler时会报这个错误
我是在子线程中创建Toast时报错的
参考
http://blog.csdn.net/stonecao/article/details/6417364
http://www.oschina.net/question/163910_31439
相关文章推荐
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- Android java.lang.RuntimeException: Can\'t create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
- Android 异常 java.lang.RuntimeException: Can't create handler inside thread that has not called Looper
- 线程 java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepa
- java.lang.RuntimeException:Can't create handler inside trhead that has not called Looper.prepare
- android java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.pr
- Android java.lang.RuntimeException: Can't create handler inside thread that has not called
- Android—子线程更新UI问题( java.lang.RuntimeException: Can't create handler inside thread that has not cal)
- java.lang.RuntimeException: Can't create handler inside thread that has not
- java.lang.RuntimeException: Can't create handler inside thread that has not