Unable to add window is not valid; is your activity running?
2012-08-16 23:20
501 查看
错误:
android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@435def20 is not valid; is your activity running? at android.view.ViewRoot.setView......
发生环境:
在一个tabActivity里面嵌套一个tabAcitivity, 如果在子tabActivity里面显示AlertDialog的话,就会引发此错误。
解决方法:
AlertDialog.Builder(xxx.this) => AlertDialog.Builder(this.getParent())
android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@435def20 is not valid; is your activity running? at android.view.ViewRoot.setView......
发生环境:
在一个tabActivity里面嵌套一个tabAcitivity, 如果在子tabActivity里面显示AlertDialog的话,就会引发此错误。
解决方法:
AlertDialog.Builder(xxx.this) => AlertDialog.Builder(this.getParent())
相关文章推荐
- Unable to add window -- token null is not valid; is your activity running?
- Activity has leaked window that was originally added -界面退出时未关闭对话框异常 android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? -
- view.WindowManager$BadTokenException: Unable to add window…is not valid; is your activity running?
- Unable to add window --token is not valid; is your activity running?
- Unable to add window -- token null is not valid; is your activity running?
- PopupWindow出现Unable to add window -- token null is not valid; is your activity running?
- Unable to add window -- token android.os.BinderProxy@xxx is not valid; is your activity running
- Anroid 异常:Unable to add window …… is not valid; is your activity running?
- Unable to add window — token android.os.BinderProxy is not valid; is your activity running?
- Unable to add window -- token null is not valid; is your activity running?错误及其修改方法
- popupwindow使用之异常-Unable to add window -- token null is not valid; is your activity running?
- Unable to add window — token android.os.BinderProxy is not valid; is your activity running?
- Unable to add window -- token android.os.BinderProxy@XXX is not valid; is your activity running?
- Anroid 异常:Unable to add window 。。is not valid; is your activity running?
- unable to add window -- token null is not valid; is your activity running 错误解决办法
- bug--Unable to add window –token is not valid; is your activity running?
- PopupWindow出现Unable to add window -- token null is not valid; is your activity running?
- - Unable to add window -- token null is not valid; is your activity running?
- Anroid 异常:Unable to add window …… is not valid; is your activity running?
- BadTokenException:Unable to add window …… is your activity running?is not valid; is your activity ru