android:Wants to consult about Dialog adding button Dilemma
<p>I have this code for making dialog:</p>

<pre><code>Dialog d = new Dialog(this);
d.setTitle("AA");
TextView tv=new TextView(this);
tv.setText("BB");
d.setContentView(tv);
d.show();
</code></pre>

<p>I am looking for any way to add 2 buttons to this dialog and catch the button press event?</p>

<p>Thanks</p>
