解决在子线程中调用Toast的异常情况处理2024-02-26 20:09:04 解决在子线程中调用Toast的异常情况处理 Looper.prepare(); Toast toast = Toast.makeText(Post_Activity.this, "发表失败!", Toast.LENGTH_LONG); toast.setGravity(Gravity.CENTER, 0, 0); toast.show(); Looper.loop(); 上一篇:Idea查看java 的.class文件结构插件jclasslib下一篇:源码各个击破之-Handler2