Code example for NumberPicker

Methods: getValue

0
	@Override 
	protected void onDialogClosed(boolean positiveResult) {
 
		// When the user selects "OK", persist the new value 
		if (positiveResult) {
			int newValue = mNumberPicker.getValue();
			if (callChangeListener(newValue)) {	
				mCurrentValue = newValue;
				persistInt(newValue);
			} 
			 
			//setSummary(mCurrentValue); 
		} 
 
		super.onDialogClosed(positiveResult);
	} 
 
	@Override 
	protected void onSetInitialValue(boolean restorePersistedValue,
			Object defaultValue) {
		if (restorePersistedValue) {