Return data from Custom Dialog
<p>I'm calling a custom dialog thusly</p>

<pre><code>        CustomDialog dialog = new CustomDialog(this);
        dialog.setCancelable(true);
        dialog.show();
</code></pre>

<p>Now, if I have a bunch of buttons in the dialog, how do I return the user's choice when I dismiss() the dialog?</p>
