I am making an application and it has an Alert Dialog in it.
Now i am checking some data I got from AlertDialog editTexts in dialog Positive button OnClick method but
if you want dismiss dialog whenever you want then you must need to use Custom Dialog instead of Alert Dialog.
AlertDialog always dismiss when you press Negative or Positive button of AlertDialog.
For more information about custom dialog then Click here Custom Dialog