Alert Dialogs are useful to show warning to users and ask for their confirmations. Simply put, alert dialogs are popups with a title and a message with positive and negative actions.
To create an alert dialog, we need to use the AlertDialog.Builder class. You can call the AlertDialog.Builder