Program Logic to show two customized dialogs with in one onCreateDialog()?
<pre><code>public class HomeScreen extends Activity {

    static final int DIALOG_ID_X = 0;
    static final int DIALOG_ID_Y = 1;

    button1.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {
            // TODO Auto-generated method stub

            showDialog(DIALOG_ID_X);

        }
    });
   button2.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {
            // TODO Auto-generated method stub

            showDialog(DIALOG_ID_Y);

        }
    });
</code></pre>

<p>}</p>

<p>Above is my main activity class and trying to open two customize dialogs upon clicking the two buttons (b1,b2). So my problem is b1 is working fine(Dialog opens correctly) but b2 is not working. Any idea how to let the b2 work?</p>

<p>Any help will be appreciated.</p>

<p>mrana...</p>
