title: async task not updating screen
body: <p>I have a method that is executed using asyncTask with a progressdialog. After this method is executed, it changes some things on screen -  a spinner and a textview. Inside my method I update them with new data. I know that the method is running perfectly and is doing as it should, because when I press the arrow on the spinner the new data is inside it. Inside the method a setText() and notifyDataSetChanged() are called - these don't seem to update the screen. Adding notifyDataSetChanged() to onPostExecute() of my async task doesn't seem to do anything either.</p>
  
  <p>Any ideas what is going wrong?</p>
  
  <p>This is my code</p>
  
  <p>myMethod()</p>
  
  <pre><code>aa=new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_spinner_item);
                          for(Object tmpObject:objects){
                              aa.add(tmpObject.getName());
                          }
                          spin=(Spinner)findViewById(R.id.spinner);
                          spin.setOnItemSelectedListener(this);
                          aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
                          spin.setAdapter(aa);
                          aa.notifyDataSetChanged();
                          txt=(TextView)findViewById(R.id.txt);
                          txt.setText("Woohoo!");
  </code></pre>
  
  <p>My asyncTask</p>
  
  <pre><code>class loginTask extends AsyncTask&lt;Void, Void, Void&gt; {
      protected void onPreExecute() {
             pd = ProgressDialog.show(login.this, "Logging you in...", "Please wait", true, false); 
            }
  
      @Override
       protected Void doInBackground(Void... unused) {
           myMethod();
          return null;
       }
          protected void onPostExecute(Void unused) {
           pd.dismiss();
  
  
  
  
       }
  }
  </code></pre>
  
  <p>Why isnt the screen updating after the progressdialog is finished? It updates just fine if I dont use asyncTask. Adding notifyDataSetChanged() to the postexecute doesn't do anything either.</p>