title: ArrayAdapter notifyDataSetChanged not being executed on UI thread
body: <p>I am running the below code inside a new thread that I create by doing:</p>
  
  <pre><code>new Thread(new Runnable() {
      public void run() {
          // CODE BELOW
      }
  }).start();
  </code></pre>
  
  <p>So my runonUI code is never being executed. I am under the impression that I need to run it on the UI thread in order to update the adapter. Also am I updating the adapter correctly?</p>
  
  <pre><code>Log.d(App.app.chats.toString(),"THIS IS THE TEXTS WE SHOULD DISPLAY");
  
  ((ArrayAdapter)App.app.chatDisplay.getAdapter()).clear();
  
  for (int i = 0; i &lt; App.app.chats.size(); i++) {
      ((ArrayAdapter)App.app.chatDisplay.getAdapter()).add(App.app.chats.get(i));
  }
  
  activity.runOnUiThread(new Runnable() {
      @Override
      public void run() {
          Log.d("THIS IS ACTUALLY RUNNING","TEST");
          ((BaseAdapter)App.app.chatDisplay.getAdapter()).notifyDataSetChanged();
      }
  });
  </code></pre>