CopyPastor

Detecting plagiarism made easy.

Score: 0.8312134742736816; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-05-02
by Krishna

Original Post

Original - Posted on 2013-12-10
by Rethinavel



            
Present in both answers; Present only in the new answer; Present only in the old answer;

AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder( context);
// set title alertDialogBuilder.setTitle("Your Title");
// set dialog message alertDialogBuilder .setMessage("Click yes to exit!") .setCancelable(false) .setPositiveButton("Yes",new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog,int id) { // if this button is clicked, close // current activity MainActivity.this.finish(); } }) .setNegativeButton("No",new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog,int id) { // if this button is clicked, just close // the dialog box and do nothing dialog.cancel(); } });
// create alert dialog AlertDialog alertDialog = alertDialogBuilder.create();
// show it alertDialog.show(); } });
Try this out :
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder( context); // set title alertDialogBuilder.setTitle("Your Title"); // set dialog message alertDialogBuilder .setMessage("Click yes to exit!") .setCancelable(false) .setPositiveButton("Yes",new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog,int id) { // if this button is clicked, close // current activity MainActivity.this.finish(); } }) .setNegativeButton("No",new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog,int id) { // if this button is clicked, just close // the dialog box and do nothing dialog.cancel(); } }); // create alert dialog AlertDialog alertDialog = alertDialogBuilder.create(); // show it alertDialog.show(); }

        
Present in both answers; Present only in the new answer; Present only in the old answer;