在接android SDK的时候有时候为了方便debug调试查看,通过Toast输出相关信息,
Android在子线程里使用Toast报错Can't toast on a thread that has not called Looper.prepare()
原创
©著作权归作者所有:来自51CTO博客作者游戏开发司机的原创作品,请联系作者获取转载授权,否则将追究法律责任
解决办法为先调用
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
在okhttp的callback回调中加Toast出现Cant create handler inside hread that has not called Looper.prepare()...
...
子线程 解决方法 python 异步消息 无限循环