标签:
解决方法:AlertDialog.Builder(xxx.this) => AlertDialog.Builder(this.getParent()) 或(this)改为(xxx.this)
android.view.WindowManager$BadTokenException: Unable to add window
原文地址:http://www.cnblogs.com/tianmanyi/p/5351564.html