Code example for AlertDialog.Builder

Methods: setMultiChoiceItems

0
            throw new IllegalStateException(
                    "ListPreference requires an entries array and an entryValues array which are both the same length"); 
        } 
 
        restoreCheckedEntries(); 
        builder.setMultiChoiceItems(entries, mClickedDialogEntryIndices, 
                new DialogInterface.OnMultiChoiceClickListener() {
					public void onClick(DialogInterface dialog, int which, boolean val) {
                    	mClickedDialogEntryIndices[which] = val;
					} 
        }); 
        updateValue(); 
         
    } 
 
    public static String[] parseStoredValue(CharSequence val) {
		if ( Utils.isBlank((String)val))
			return null; 
		else 
			return ((String)val).split(SEPARATOR);
Experience pair programming with AI  Get Codota for Java