Working With AlertDialogbox Android- UI Widget


As per the name suggests Alert Dialog Box is same as other programming language . It shows or prompt user that so you really want to exit this application or similar things. Lets Explore – Download Code

1). First of all create new project and in activity_main.xml file their is nothing special but if you want to develop something interesting app then you can customize by your own like on back button press Alert dialog box etc.

2). , I include AlertDialog.Builder class and via its object I set Message , Title and other properties like  two buttons namely yes or no etc . 

Output – alertdialogboxAny query or customization on this tutorial , feel free to share . Happy Coding :p