android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an appli

来源:互联网 发布:物流标签打印软件 编辑:程序博客网 时间:2024/05/16 19:52

android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application

 //

   context, 传的是getapplicationcontext();, 所以出错。 要传xxxActivity.this

原创粉丝点击