title: Set Spinner selection doesn't work
body: <p>I'm trying to set a spinner with setSelection in order to display a specific option as follows:</p>
  
  <pre><code>Spinner gender;
  gender = (Spinner) findViewById(R.id.spinner_edit_gender);
  ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.createFromResource(this, R.array.gender_array, android.R.layout.simple_spinner_item);
      adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      gender.setAdapter(adapter);
      if (strGender.equals("male"))
          gender.setSelection(0,true);
      else
          gender.setSelection(1,true);
  </code></pre>
  
  <p>It always sets the first option of the spinner instead of what i want</p>
  
  <p>Anyone know why and can help me plz?</p>
  
  <p>Thanx</p>