progressdialog preventing contentview switch?
<p>Whenever I attempt to set content view after dismissing the progress dialog I get an error like... </p>

<p>04-13 14:40:38.043: WARN/System.err(801):        android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
04-13 14:40:38.073: WARN/InputManagerService(59): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44dde3f0</p>

<p>My code is like...</p>

<pre><code>ProgressDialog dialog = null; //class variable.


dialog = ProgressDialog.show(Login.this, "", 
            "Logging you in. Please wait...", true);
     new Thread() {
         public void run() {
                 try{
                      //serious work here!
                    }
                    dialog.dismiss();
                    setContentView(R.layout.blaa);
                 } catch (Exception e) {
                     e.printStackTrace();
                 }
         }
 }.start();
</code></pre>

<p>What's causing this?</p>
