Unable to add window -- token android.app.LocalActivityManager$Loc
2014-10-09 17:27
531 查看
09-24 15:04:58.641: ERROR/AndroidRuntime(8666): Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- tokenandroid.app.LocalActivityManager$LocalActivityRecord@4053e3a0
is not valid; is your activity running? 解决方案:
Andrdoid用仿iphone的TabBar是用TabHost+ActivityGroup来解决的,里面用View堆栈的形式加载 Activity,在里面的Activity用AlertDialog对话框是,报异 常:“android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@983iefd89
is not valid; is your activity running? ”
把AlertDialog里面的context:xxxActivity.this 改为::“xxxActivity.this..getParent()”就搞定!
is not valid; is your activity running? 解决方案:
Andrdoid用仿iphone的TabBar是用TabHost+ActivityGroup来解决的,里面用View堆栈的形式加载 Activity,在里面的Activity用AlertDialog对话框是,报异 常:“android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@983iefd89
is not valid; is your activity running? ”
把AlertDialog里面的context:xxxActivity.this 改为::“xxxActivity.this..getParent()”就搞定!
相关文章推荐
- 环境错误Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@435def20 is not v
- ActivityGroup中出现的Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@
- Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@435def20 is not v
- android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivit
- 解决android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActiv
- Unable to add window -- token android.os.BinderProxy@xxx is not valid; is your activity running
- Unable to add window — token android.os.BinderProxy is not valid; is your activity running?
- 解决: android.view.WindowManager BadTokenException:Unable to add Window.Is your activity running?
- 关于android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an app
- Unable to add window -- token android.os.BinderProxy@XXX is not valid; is your activity running?
- Unable to add window — token android.os.BinderProxy 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? -
- android.view.WindowManager$BadTokenException: Unable to add window
- android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an appli
- AlertDialog.Builder发生:android.view.WindowManager$BadTokenException: Unable to add window
- BadTokenException:Unable to add window …… is your activity running?is not valid; is your activity ru
- Android酱油笔记之关于AlertDialog的Unable to add window token null is not for an application解决办法
- android.view.WindowManager$BadTokenException: Unable to add window
- android.view.WindowManager$BadTokenException: Unable to add window 异常的处理
- android.view.WindowManager$BadTokenException: Unable to add window