09-24 15:04:58.641: ERROR/AndroidRuntime(8666): Caused by: android.view.WindowManager$BadTokenException: Unable to add window --
token
android.app.LocalActivityManager$LocalActivityRecord@4053e3a0 is not valid; is your activity running?
解决方案:
把AlertDialog里面的context:xxxActivity.this 改为::“xxxActivity.this..getParent()”就搞定!