![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
AlertDialog
GrimRaider
做难事,必有所得。
展开
-
AlertDialog show的时候会报错:token null is not for an application
AlertDialog show的时候会报错:E/AndroidRuntime(921): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application AlertDialog.Builder builder;原创 2012-06-08 17:33:53 · 1899 阅读 · 0 评论 -
AlertDialog总结
AlertDialog alert = new AlertDialog.Builder(this).create(); alert.show(); alert.getWindow().setContentView(R.layout.my_dialog);R.layout.my_dialog为xml布局文件。一开始我是这样写的: LayoutIn原创 2012-06-12 11:10:20 · 742 阅读 · 0 评论