Android sample of working with dialogs from the book "Beginning Android 4 Application Development" by Wei-Meng Lee