Posted By

habib123 on 04/29/10


Tagged

alert dialog android


Versions (?)

Anroid Alert Dialog Builder


 / Published in: Java
 

  1. Dialog dlg = new AlertDialog.Builder(CurrentActivity.this)
  2. .setTitle("Warning")
  3. .setMessage("Message")
  4. .setPositiveButton("OK", new DialogInterface.OnClickListener() {
  5. public void onClick(DialogInterface dialog, int whichButton) {
  6. finish();
  7. }
  8. })
  9. .create();
  10. dlg.show();

Report this snippet  

You need to login to post a comment.