03-10 17:42:28.959: ERROR/AndroidRuntime(15903): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@438e7108 is not valid; is your activity running?
解决:子Activity启动dialog(或类似操作)引发此错误
解决方法:
AlertDialog.Builder(xxx.this) => AlertDialog.Builder(this.getParent())
或(this)改为(xxx.this)