Android NumberPicker setValue does not work with setDisplayedValues
<p>I am incrementing values in android NumberPicker by 5, however when I call setValue method, it doesn't seem to work when used together with setDisplayedValues. My code is below, any help is appreciated:</p>

<pre><code>String[] numberValues = new String[((maxValue-minValue)/5) + 1];

            int current = 0;
            for (int i = minValue; i &lt;= maxValue; i+= step) {
                numberValues[current] = String.valueOf(i);
                current++;
            }
            setpointPicker.setMinValue(0);
            setpointPicker.setMaxValue(numberValues.length-1);

            setpointPicker.setWrapSelectorWheel(false);
            setpointPicker.setDisplayedValues(numberValues);
            setpointPicker.setValue(myValue); // doesn't set the value
</code></pre>