原文:http://blog.csdn.net/fxtxz2/article/details/7921131
08-29 15:46:14.930: E/AndroidRuntime(28804): android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@40603cc0 is not valid; is your activity running?
它不知道是那个Activity了,需要调用getParent()
参考:http://gundumw100.iteye.com/blog/1128041
这个是我在TabActivity中又装了个ActivityGroup,才出现这种情况
但我直接用ActivityGroup就没有这种问题
http://blog.csdn.net/hillpool/article/details/7560600