您的位置:首页 > 移动开发 > Android开发

Android 错误提示: Can't create handler inside thread that has not called Looper.prepare()

2014-03-05 15:36 218 查看
Can't create handler inside thread that has not called Looper.prepare()
将 Handler handler = new Handler() 更为 Handler handler = new Handler(Looper.getMainLooper()).方可解决

也可以在run 之前 调用 Looper.prepare();
来解决此类问题

原因可点击: 参考文章
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐