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

来源:互联网 发布:重庆网络运营推广 编辑:程序博客网 时间:2024/05/23 13:02

其实解决起来还是比较简单的,请看如下:

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


阅读全文
1 0