I have 2 alert dialogs, dialog A and dialog B. Clicking on one of dialog A\'s buttons will bring up dialog B. I then want to have a button that will dismiss dialog B and ret
Using the basic dialog building blocks it is not possible to have them stack, you will need to re-show the first dialog. The reason for this is that when you press a dialog button it internally will dismiss the dialog as part of the process for calling the click handler you assigned for each button in the dialog builder API.
One way around this is to make a custom dialog layout that doesn't have the dismiss behavior, by setting up your own buttons in the layout, rather than using those created by the dialog builder methods. Then in the click handler for you own buttons simply show the second dialog without dismissing the first. http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog