导致报这个错是在于new AlertDialog.Builder(mcontext),虽然这里的参数是AlertDialog.Builder(Context context)但我们不能使用getApplicationContext()获得的Context,而必须使用Activity,因为只有一个Activity才能添加一个窗体。
相关文章
- 04-09Unable to add window -- token null is not for an application
- 04-09bug--Unable to add window –token is not valid; is your activity running?
- 04-09android.view.WindowManager$BadTokenException: Unable to add window
- 04-09android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
- 04-09Xamarin Android.Views.WindowManagerBadTokenException: Unable to add window -- token android.os.BinderProxy
- 04-09PopupWindow嵌套PopupWindow时报Unable to add window的处理
- 04-09debug debug Unable to add window android.view.View--permission denied for this window type
- 04-09AlertDailog: android.view.WindowManager$BadTokenException: Unable to add window -- token null is no
- 04-09android.view.WindowManager$BadTokenException: Unable to add window — token null is not for an applic
- 04-09Unable to add window -- token android.os.BinderProxy@3a067204 is not valid错误分析记录