In this chapter, we will learn how to find out which button has been pressed by the user, how to take user input using dialogs and how to perform coercion and display it in a dialog.