android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@43e64670 is not valid; is your activity running?
当我尝试显示一个对话框时,我收到此异常。为什么会这样?
答案 0 :(得分:1)
Dialog dialog = new Dialog(Myactivity.this);
如果你有tabGroupactivity ......
Dialog dialog = new Dialog(Myactivity.this.getParent());