Dialog won't show. UI Threading issue
<p>I have an inner class that is instantiated inside of a async callback. I would like a display a dialog when the callback completes, so I pass a handler to the inner class when the async operation is called, however, I'm getting:</p>

<pre><code> 02-19 15:33:49.152: ERROR/AndroidRuntime(635): Uncaught handler: thread main exiting due to uncaught exception
    02-19 15:33:49.272: ERROR/AndroidRuntime(635): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4322fef0 is not valid; is your activity running?
    02-19 15:33:49.272: ERROR/AndroidRuntime(635):     at android.view.ViewRoot.setView(ViewRoot.java:456)
    02-19 15:33:49.272: ERROR/AndroidRuntime(635):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
    02-19 15:33:49.272: ERROR/AndroidRuntime(635):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
    02-19 15:33:49.272: ERROR/AndroidRuntime(635):     at android.view.Window$LocalWindowManager.addView(Window.java:409)
    02-19 15:33:49.272: ERROR/AndroidRuntime(635):     at android.app.Dialog.show(Dialog.java:238)
</code></pre>
