title: Android display another dialog from a dialog
body: <p>I am trying to display a dialog from the onClick listener of a button of another dialog, but the 2nd dialog won't display. I searched and found a similar problem- <a href="https://stackoverflow.com/questions/3989767/dialogs-order-in-android">Dialogs order in Android</a>, tried the solution provided, but even that does not work.</p>
  
  <p>My code is very similar to the one provided in the answer.</p>
  
  <blockquote>
    <p>public void onClick(DialogInterface
    dialog, int id) {
                showDialog(SECOND_DIALOG);
                dialog.dismiss();
            }</p>
  </blockquote>
  
  <p>any help will be really appreciated.</p>
  
  <p>Thanks,</p>
  
  <p>Akshay</p>