Anroid Alert Dialog Builder


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.