ProTech Blog

Example: Show Alert Dialog in Android

1. Introducing Android Alert Dialog

Dialog boxes are a common UI metaphor in desktop and web applications. They 're used to help users answer questions, make selections, confirm actions, and read warning or error messages. An Android Dialog is a floating window that partially obscures the Activity that launched it.
Creating alert dialog is very easy. In this tutorial i will be discussing about creating different alert dialogues with one button(ok button), two buttons(yes or no buttons) and three buttons(yes, no and cancel buttons).