Android解决 Can’t toast on a thread that has not called Looper.prepare() 今天在测试 Andorid 项目遇到主题中的错误。 错误的场景 当时 Activity 为销毁状态,只有两个服务线程在后台运行,中间运用 socket.io 通讯,当接收(on)消息时需要运用 Toast.makeText 进行通知。这时就产生了。 这个原因是... zhanghui 8个月前 (06-05) 581℃