一个popupWindow 里面有个按钮,实现这个按钮的onTouch事件弹出另外一个popupWindow ,这时出现以下错误。
01 06:18:18.214: ERROR/AndroidRuntime(888): android.view.WindowManager$BadTokenException: Unable to add window — token android.view.ViewRoot$W@44ef1b68 is not valid; is your activity running?
01 06:18:18.214: ERROR/AndroidRuntime(888): android.view.WindowManager$BadTokenException: Unable to add window — token android.view.ViewRoot$W@44ef1b68 is not valid; is your activity running?