自信美女

文章
6
资源
0
加入时间
4年0月7天

Android 使用Toast闪退

错误Log:java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 是因为在子线程中调用了Toast,导致出错,android子线程中是不能直接弹出Toast的。解决方法:子线程中没有Looper,但是我们可以创建一个Looper在调用Toa...