title: How to set selected item of Spinner by value, not by position
body: <pre><code>&lt;item value="245"&gt;Guinea-Bissau [245]&lt;/item &gt;
  &lt;item value="592"&gt;Guyana [592]&lt;/item &gt;
  &lt;item value="509"&gt;Haiti  [509]&lt;/item &gt;
  &lt;item value="504"&gt;Honduras [504]&lt;/item &gt;
  &lt;item value="91"&gt;India [91]&lt;/item &gt;
  &lt;item value="62"&gt;Indonesia [62]&lt;/item &gt;
  </code></pre>
  
  <blockquote>
    <p>I am using this</p>
  </blockquote>
  
  <pre><code>country.setOnItemSelectedListener(new OnItemSelectedListener() {
  
      public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
          // TODO Auto-generated method stub
          //selectioncountry = parent.getItemAtPosition(position).toString();
          selectionarea = parent.getItemIdAtPosition(position);
      }
  
      @Override
      public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
  
          // TODO Auto-generated method stub          
      }
  });
  </code></pre>
  
  <blockquote>
    <p>this code give thie value of india is 4 but i need 91 how can i do
    this ???</p>
  </blockquote>