Code example for Vector

Methods: add, size, toArray

0
        setEntryValues(weekdays);
    } 
 
    private String[] getStringWakeUpStyles() {
		 
Vector<String> values = new Vector<String>();
values.add("Maths Question");
values.add("Picture Puzzle");
String[] st =new String[values.size()];
 
return  values.toArray(st);
 } 
 
	@Override 
    protected void onDialogClosed(boolean positiveResult) {
        if (positiveResult) {
        	CharSequence[] entries = getEntries();
            CharSequence[] entryValues = getEntryValues();
        	//mDaysOfWeek.set(mNewDaysOfWeek); 
            setPrefSummary(); 
        }