在接android SDK的时候有时候为了方便debug调试查看,通过Toast输出相关信息,
Android在子线程里使用Toast报错Can't toast on a thread that has not called Looper.prepare()
阅读 63
2022-08-01
在接android SDK的时候有时候为了方便debug调试查看,通过Toast输出相关信息,
Looper.prepare();
再调用Toast.makeText().show();
最后再调用Looper.loop();
相关推荐
精彩评论(0)