I want to Dismiss the popup window by clicking outside of the popup window or by the back button, but when click on the back button my application exit\'s, instead of exitin
Replace
popupWindow.setOutsideTouchable(false);
with this
popupWindow.setOutsideTouchable(true); popupWindow.setFocusable(true);