- use Activity.showDialog to display dialogs to avoid memory leaks when just calling dialog.show, and to support rotation.