NumberPicker picker = new NumberPicker(this); picker.setMinValue(0); picker.setMaxValue(2); picker.setDisplayedValues( new String[] { "Belgium", "France", "United Kingdom" } );
References
https://stackoverflow.com/questions/8227073/using-numberpicker-widget-with-strings