title: Android Spinner populate using ArrayList
body: <p>I have a spinner, the drop down list has the correct options from my WebService, but when I selected one option, this have not shown in the Spinner field.</p>
  
  <p>My ArrayAdapter definition...</p>
  
  <pre><code>ArrayAdapter&lt;String&gt; dataAdapter = new ArrayAdapter&lt;String&gt;
                               (this, android.R.layout.simple_spinner_item,catTorneo);  
  </code></pre>
  
  <p>catTorneo has the options, it's definition as ArrayList</p>
  
  <p>If I change The ArrayAdapter with List object, the Spinner correct fine.</p>
  
  <pre><code> List&lt;String&gt; list = new ArrayList&lt;String&gt;();
                  list.add("Android");
                  list.add("Java");
                  list.add("Spinner Data");
                  list.add("Spinner Adapter");
                  list.add("Spinner Example");
  
              ArrayAdapter&lt;String&gt; dataAdapter = new ArrayAdapter&lt;String&gt;
                               (this, android.R.layout.simple_spinner_item,list);    
  </code></pre>
  
  <p>catTorneo Definition</p>
  
  <pre><code>ArrayList&lt;String&gt; catTorneo ;
  </code></pre>
  
  <p>In onTaskComplete method I populate catTorneo as..</p>
  
  <pre><code>try {
                  ljsonArray = ljsonObject.getJSONArray(tag);
                  for (int i = 0; i &lt; ljsonArray.length(); i++) {
                      ljsonObject = ljsonArray.getJSONObject(i);                  
                      // Llena el spinner con el nombre de c/u de los nombres de torneos
                      String ls = ljsonObject.optString("tor_nombre");
                      catTorneo.add(ljsonObject.optString("tor_nombre"));
  
                  }
              } catch (Exception e) {
                      Log.e("Error", e.getMessage());
                      e.printStackTrace();
                  }
  </code></pre>
  
  <p>What happened?, why with  ArrayList object doesn't work fine and with List object work fine.</p>