title: How to make a dialog box in android returning a value (boolean)
body: <p>I am making an application in which i need to display dialog box many times,I do not want to write code of dialog box again and again,so how should I make a common dialog box so that i can perform different functions on selection of yes or no at different places. please help,I tried a lot but not got the solution.</p>