Code example for AlertDialog.Builder

Methods: setMultiChoiceItems

0
	} 
 
	@Override 
	protected void onPrepareDialogBuilder(final Builder builder) {
		if (this.m) {
			builder.setMultiChoiceItems(this.getEntries(), this.checked,
					new DialogInterface.OnMultiChoiceClickListener() {
						public void onClick(final DialogInterface dialog, final int which,
								final boolean val) {
							CVListPreference.this.checked[which] = val;
						} 
					}); 
		} else { 
			super.onPrepareDialogBuilder(builder);
		} 
	} 
 
	@Override 
	protected View onCreateView(final ViewGroup parent) {
		View v = super.onCreateView(parent);
		TextView tv = (TextView) v.findViewById(android.R.id.summary);