title: How to get the DialogResult in android?
body: <p>I want to create a DialogAlert with two buttons 'YES' and 'NO'. I want to capture the result of the Dialog in a boolean variable. Suppose the user clicks the 'YES' button then the DialogResult Should return a true Value and if the user clicks the 'NO' button then the DialogResult should return a False value. Please help me out in doing this. Thanks in advance.</p>