Assuming dialoginterface is required, the following 2 results were found.
standard Ok/cancel message popup which you attach to some event import android.app.AlertDialog; import android.content.DialogInterface; new AlertDialog.Builder(this) .setTitle("Some Title") .setMessage("some message") .setPositiveButton("OK", new...
LayoutInflater inflater = this.getLayoutInflater(); b.setView(v); b.setPositiveButton("Take Photo", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int whichButton) { TAKE_OR_PICK = 1; Intent...