Android App Exit Alert Show | Android tutorial

final AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this); builder.setMessage(“Are you sure to do exit?”); builder.setCancelable(true); builder.setNegativeButton(“Close”, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) {

Read More »