title: Showing Dialog in SurfaceView
body: <p>My game is drawn onto a <code>SurfaceView</code>. I am using a Dialog as a level completion screen, but cannot get it to show (<code>Dialog.show()</code>). </p>
  
  <p>I keep getting the following error:</p>
  
  <pre><code>01-30 16:45:34.425: E/AndroidRuntime(3415): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
  </code></pre>
  
  <p>I have a Game class which extends Activity and holds the <code>SurfaceView</code>. I think <code>runOnUiThread()</code> may be the solution, but after tireless searching have no idea how to implement it inside my <code>SurfaceView</code>.</p>
  
  <p>Any help is appreciated and I will post my code if requested (just not sure which bits are actually relevant at the moment)</p>