title: Starting a new activity from a surfaceview
body: <p>Trying to start a new activity from my class GameView.class that extends SurfaceView.
  With this (found it here on Stackoverflow):</p>
  
  <pre><code>Context context = GameView.this.getContext();
  context.startActivity(new Intent(context, ScoreScreen.class));
  </code></pre>
  
  <p>I put it in a method that gets called from a separate thread.
  When it gets triggered the app just freezes. I tried putting it directly in the onTouch event (to skip the whole game and test it quicker) and it crashes all together with:</p>
  
  <pre><code>11-27 08:00:00.430: W/dalvikvm(1772): threadid=12: thread exiting with uncaught exception (group=0x41e7b300)
  11-27 08:00:00.430: E/AndroidRuntime(1772): FATAL EXCEPTION: Thread-598
  11-27 08:00:00.430: E/AndroidRuntime(1772): java.lang.NullPointerException
  11-27 08:00:00.430: E/AndroidRuntime(1772):     at com.tricky.puzzlepoker.GameView.onDraw(GameView.java:173)
  11-27 08:00:00.430: E/AndroidRuntime(1772):     at com.tricky.puzzlepoker.MainThread.run(MainThread.java:38)
  11-27 08:00:02.505: I/Process(1772): Sending signal. PID: 1772 SIG: 9
  </code></pre>
  
  <p>I have no idea what to do anymore, need help!</p>