title: notifyDataSetChanged not working?
body: <pre><code>ArrayList valforspinner=new ArrayList();
  
  ArrayAdapter&lt;String&gt; adapter=null;
  
      spinner = (Spinner) findViewById(R.id.Spinner01);
       adapter = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_spinner_item, Printers);
          adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
          spinner.setAdapter(adapter);
  
  
  new Thread(new Runnable() {
              public void run() {         
          valforspinner= GetList.List(myPrefs.getString("IP", ""));
          adapter.notifyDataSetChanged();
              }}).start();
  </code></pre>
  
  <p>When the result comes in the arraylist i.e the values,still the spinner remains empty??</p>