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

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

 //

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

你可能感兴趣的:(android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an appli)