title: call setListAdapter() from inside a thread
body: <p>I have a problem with my ListActivity, i use a thread to show a ProgressDialog where get a list of all installed applications. I turn it into a list adapter and than i want to set the listadapter of the activity but i can't do that from the thread.</p>
  
  <p>I get the following error: <code>ERROR/AndroidRuntime(14429): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.</code></p>
  
  <pre><code>progressDialog = new ProgressDialog(this);
  progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
  progressDialog.setMessage("Loading...");
  progressDialog.show();
  new Thread() {
          public void run() {
                showList(); // the method where i get all the apps and have the setListAdapter(); method
                progressDialog.dismiss();
          }
  }.start();
  </code></pre>
  
  <p>How do I get it so I can use the setListAdapter from inside my thread</p>