How to insure that AbsSpinner/Gallery.setSelection(int) is within range?
<p>I have a Gallery widget which inherits from AbsSpinner and I am doing
gallery.setSelection(index).  I want to make sure this does not crash.
How can I verify that index is within within range?</p>

<p>Thanks</p>
