To create an alert dialog in Android you can use the following snippet.
Sample Java
new AlertDialog.Builder(this) .setTitle("Delete items") .setMessage("Are you sure you want to delete this items?") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // YES } }) .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // NO } }) .setIcon(android.R.drawable.ic_dialog_alert) .show();
RT @CodeSnippetsNET: How to create an alert dialog in #Android #Eclipse http://t.co/alR1YU06ha #java #javascript #apps #playstore #programm…
RT @CodeSnippetsNET: How to create an alert dialog in #Android #Eclipse http://t.co/alR1YU06ha #java #javascript #apps #playstore #programm…
RT @CodeSnippetsNET: How to create an alert dialog in #Android #Eclipse http://t.co/alR1YU06ha #java #javascript #apps #playstore #programm…
RT @CodeSnippetsNET: How to create an alert dialog in #Android #Eclipse http://t.co/alR1YU06ha #java #javascript #apps #playstore #programm…