I want to display some Alert Dialogs in succession, i.e. when the user closes the first one, the second one gets displayed, and so on.
But I get an error if the previous Alert Dialog is not popped (removed from the display) and the program tries to display the next one.
How can I check if a widget (in this case, AlertDialog) exists on the screen?