Capture user's choice in Dialog box from the positive button
<p>How do I capture the user choice from a list of radio-buttons in the "confirm" button of the dialogbox?</p>

<p>The listener of the onClick event  of radio-buttons can capture &amp; act on the parameter "int which".</p>

<p>But I'd like to give the user a choice to change their mind even after they have made a selection, and click on "cancel" button.</p>

<p>To achieve this, I need to implement the functionality in the onClickListener of the "confirm" button, not that of the radiobuttons,
But the "int which" of the button's listener doesn't get the value of the user's choice.</p>

<p>So how do I do this?</p>
