`
xuela_net
  • 浏览: 496610 次
文章分类
社区版块
存档分类
最新评论

Can't create handler inside thread that has not called Looper.prepare() 终极解决方法

 
阅读更多

  1. E/AndroidRuntime(26639):Causedby:java.lang.RuntimeException:Can'tcreatehandlerinsidethreadthathasnotcalledLooper.prepare()


在报错的方法前加Looper.prepare();
方法末尾加Looper.loop();

源地址:http://blog.csdn.net/changemyself/article/details/8121785

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics