Return to Snippet

Revision: 26519
at April 29, 2010 23:28 by habib123


Initial Code
Dialog dlg = new AlertDialog.Builder(CurrentActivity.this)
		.setTitle("Warning")
		.setMessage("Message")
		.setPositiveButton("OK", new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int whichButton) {
				finish();
			}
		})
		.create();
		dlg.show();

Initial URL

                                

Initial Description

                                

Initial Title
Anroid Alert Dialog Builder

Initial Tags
android

Initial Language
Java