Unable to add window -- token null is not for an application---各种bug
来源:互联网 发布:淘宝卖家申请电子面单 编辑:程序博客网 时间:2024/04/30 19:23
10-18 18:49:02.767: E/InputEventSender(6274): Exception dispatching finished signal.
10-18 18:49:02.767: E/MessageQueue-JNI(6274): Exception in MessageQueue callback: handleReceiveCallback
10-18 18:49:02.774: E/MessageQueue-JNI(6274): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
10-18 18:49:02.774: E/MessageQueue-JNI(6274): at android.view.ViewRootImpl.setView(ViewRootImpl.java:754)
10-18 18:49:02.774: E/MessageQueue-JNI(6274): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:267)
10-18 18:49:02.774: E/MessageQueue-JNI(6274): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:70)
10-18 18:49:02.774: E/MessageQueue-JNI(6274): at android.app.Dialog.show(Dialog.java:347)
10-18 18:49:02.767: E/MessageQueue-JNI(6274): Exception in MessageQueue callback: handleReceiveCallback
10-18 18:49:02.774: E/MessageQueue-JNI(6274): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
10-18 18:49:02.774: E/MessageQueue-JNI(6274): at android.view.ViewRootImpl.setView(ViewRootImpl.java:754)
10-18 18:49:02.774: E/MessageQueue-JNI(6274): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:267)
10-18 18:49:02.774: E/MessageQueue-JNI(6274): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:70)
10-18 18:49:02.774: E/MessageQueue-JNI(6274): at android.app.Dialog.show(Dialog.java:347)
10-18 18:49:02.774: E/MessageQueue-JNI(6274):at android.app.AlertDialog.show(AlertDialog.java:1367)
错误原因:又用的是 context 只能用activity.this
AlertDialog.Builder builder = new Builder(MainActivity.this);
0 0
- Unable to add window -- token null is not for an application---各种bug
- android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
- android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
- android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
- WindowManager$BadTokenException: Unable to add window -- token null is not for an application
- Unable to add window -- token null is not for an application错误的解决方法
- Android Custom Dialog错误Unable to add window -- token null is not for an application
- Android Custom Dialog错误Unable to add window -- token null is not for an application
- Unable to add window -- token null is not for an application 的解决办法
- Unable to add window -- token null is not for an application
- AlertDialog:Unable to add window -- token null is not for an application
- Unable to add window -- token null is not for an application
- Android Custom Dialog错误Unable to add window -- token null is not for an application
- Unable to add window -- token null is not for an application
- AlertDialog显示错误 Unable to add window token null is not for an application
- Unable to add window -- token null is not for an application
- Unable to add window -- token null is not for an application:
- AlertDialog显示错误 Unable to add window token null is not for an application
- 【笔试】58、确定其中一个字符串的字符重新排列后,能否变成另外一个字符串
- 自考小总—学习思想升华
- 蓦然回首,灯火阑珊——自考总结
- C#运算符重载和索引器
- 为什么Android的图片质量没有iOS的高?
- Unable to add window -- token null is not for an application---各种bug
- ubuntu安装和查看已安装
- Clojure语言十三: 宏的基本概念
- Android Canvas中rotate()和translate()方法详解
- 测试工具有哪些
- hdu5505 GT and numbers
- VBS代码2
- 顺序查找
- 再谈PostMessage和SendMessage(如何使用 LParam 和 RParam两个参数)