Posted By

petethered on 11/23/09


Tagged

alert dialog android


Versions (?)

Android Alert Dialog


 / Published in: Java
 

  1. AlertDialog.show(class.this, "Alert Title", "Alert Message", "Button", false)

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: petethered on November 23, 2009

new AlertDialog.Builder(MainActivity.this) .setTitle("Simple Alert Dialog") .setMessage("Are you sure that you want to quit?") .setNegativeButton("Yes", new DialogInterface.OnClickListener() {

      public void onClick(DialogInterface dialog, int whichButton) {

      }
 })

.show();

You need to login to post a comment.