title: How to set selected item of Spinner by value, not by position?
body: <p>I have a update view, where I need to preselect the value stored in database for a Spinner.</p>
  
  <p>I was having in mind something like this, but the <code>Adapter</code> has no <code>indexOf</code> method, so I am stuck.</p>
  
  <pre><code>void setSpinner(String value)
  {
      int pos = getSpinnerField().getAdapter().indexOf(value);
      getSpinnerField().setSelection(pos);
  }
  </code></pre>