Agregando Botones // Setting Yes Button builder.setPositiveButton(YES ,new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User clicked OK button } }); // Setting No Button builder.setNegativeButton(CANCEL ,new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User clicked OK button } });
{}