title: android.R.simple_spinner_adapter cannot be resolved
body: <p>Android 2.3.3</p>
  
  <p>I am having a Spinner in my xml file and I wish to set an ArrayList as a source. I am trying to instantiate the ArrayAdapter with the ArrayList, but i don't get the R.simple_spinner_adapter to select.</p>
  
  <p>Here is the code :::</p>
  
  <pre><code>public class UnitConverter extends Activity{
  
  
      Spinner spnUnit;
      ArrayAdapter&lt;String&gt; ad;
  
      ArrayList&lt;String&gt; alAngle = new ArrayList&lt;String&gt;();
  
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);     
          setContentView(R.layout.unitconverter);
  
          spnUnit = (Spinner) findViewById(R.id.spinnerUnit);
          ad = new ArrayAdapter&lt;String&gt;(this, android.R.simple_spinner_adapter, alAngle);
      // Error at above line near android.R.simple_spinner_adapter    
          setDataToArrayLists();
  
  
  
      }
  </code></pre>