Answers for "alert dialog on android"

0

alert dialog on android

new AlertDialog.Builder(this)
    .setTitle("Closing application")
    .setMessage("Are you sure you want to exit?")
    .setPositiveButton("Yes", new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface dialog, int which) {

          }
     }).setNegativeButton("No", null).show();
Posted by: Guest on June-24-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language