inside thread that has not called Looper.prepare()

handlre发送message,handleMessage中弹出吐司 创建looper对象 Looper.prepare();Toast.makeText();
■网友
把toast放到主线程上显示,不然就算你prepare了还会有另外一个错
■网友
你在子线程创建的handler
■网友
报错为:java.lang.RuntimeException: Can\u0026#39;t create handler inside thread that has not called Looper.prepare()inside thread that has not called Looper.prepare()
【inside thread that has not called Looper.prepare()】

■网友
一切ui操作都用handler切换到主线程


    推荐阅读