Example of using dialogs before they have been deprecated in favor of using Fragments.