兔子--android.view.windowmanager BadTokenException :unable to add window token null is not for applica
来源:互联网 发布:dsa p57 数据升级工具 编辑:程序博客网 时间:2024/06/03 01:27
导致报这个错是在于new AlertDialog.Builder(mcontext),虽然这里的参数是AlertDialog.Builder(Context context)但我们不能使用getApplicationContext()获得的Context,而必须使用Activity,因为只有一个Activity才能添加一个窗体。
环境变量传入错误,不能使application的环境,应该是Activity的环境
- new AlertDialog.Builder(MyActivity.this)
- .setIcon(android.R.drawable.ic_launch)
- .setTitle("Warnning")
- .setMessage("haha")
- .setPositiveButton("Yes", positiveListener).setNegativeButton(
- "No", negativeListener).create().show();
0 0
- 兔子--android.view.windowmanager BadTokenException :unable to add window token null is not for applica
- android.view.WindowManager$BadTokenException: Unable to add window--token null is not for an applica
- android窗体溢出WindowManager$BadTokenException: Unable to add window -- token null is not for an applica
- Android报错android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for
- 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
- 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 appli
- 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 appli
- 关于android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an app
- 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 appli
- 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 appli
- android.view.WindowManager$BadTokenException: Unable to add window — token null is not for an applic
- android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an appli
- 自动生成地图 物体 Generator
- shell学习四十五天----xargs
- wireshark
- 关于C++ const 的全面总结
- Effective OC : 1-5
- 兔子--android.view.windowmanager BadTokenException :unable to add window token null is not for applica
- AWK命令详解
- js中return的用法
- struct和typedef
- ResultSet 被closed
- 请求乱码 一台机器行,另外一台不行
- Spring MVC 学习 之 - URL参数传递
- 修改cas-server(三),自定义登录验证方式。
- Windows下Core Audio APIS 音频应用开发(一)