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
Try this way: Implement onBackPressed() and add
onBackPressed()
if(popup!=null) { popup.dismiss(); popup=null; }
And set your PopWindow with below:
PopWindow
popup.setOutsideTouchable(true);