title: Android, call interface method from anonymous thread in another class
body: <p>My Activity implements an interface IProcess.</p>
  
  <p>I have a class called Scaler with a static method inside called doProcess().</p>
  
  <p>doProcess contains an anonymous thread which calls an processing method that updates its progress as it runs.</p>
  
  <p>When the process is done I want to call the interface method on My activity which implements IProcess to show a dialog, however, I am getting an exception at the point the dialog should show, saying:</p>
  
  <pre><code>04-06 08:43:54.048: ERROR/AndroidRuntime(6832): java.lang.RuntimeException: 
  Can't create handler inside thread that has not called Looper.prepare()
  </code></pre>
  
  <p>What am I doing wrong, wnad what would be the alternative way (if this is wrong) to display the dialog back in my main activity?</p>