I am using the showDialog() and dismissDialog() to show progress dialogs in my app. Moved from creating the dialog and calling show()
showDialog()
dismissDialog()
show()
The best solution for me seems to use removeDialog(id) instead of dismissDialog(); Less re-usage this way, but safer (doesn't throw anything) and no problems when changing orientation.