Sometimes in our applications we want to alert the user for an event and/or ask him/her about taking a decision. For this purpose AlertDialog class can be used, where a message and one, two or three buttons are displayed in a popup window. In this example, we are going to show an AlertDialog with three different buttons, where each one leads to a different action.
Java Code Geeks
Dec 26, 13