How to show/display Alert Dialog/Dialog in Android.

In this post, I will show you how to show alertDialog in Android. AlertDialog is used largely to show alerts or confirmation messages to the user. Alert Dialog is very easy to create. So, Let's Start:- Simple AlertDialog with "OK" Button //create alertDialogBuilder AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(MainActivity.this); // set title alertDialogBuilder.setTitle("CoderzPassion"); // set dialog … Continue reading How to show/display Alert Dialog/Dialog in Android.