Android Spinner Exception when clicked BadTokenException
问题 I have a problem when clicking on a spinner ( in a popup window ) here is my popup: public class PopupDialog extends PopupWindow { public PopupDialog() { super(); init(); } public PopupDialog(View contentView, int width, int height) { super(contentView, width, height); init(); } public PopupDialog(View contentView) { super(contentView); init(); } private void init() { this.setTouchable(true); this.setFocusable(true); this.setOutsideTouchable(true); setBackgroundDrawable(new BitmapDrawable());