title: How to start an activity from a non-ui thread (from a surface view drawing thread)
body: <p>I'm developing an android game that uses a surface view for representing the ui graphics. I need to implement a method to start another activity if the user touches a specific area.
  for this i'm passing the main (foreground) activity's current instance to the surface view</p>
  
  <p>I can handle the touch easily but cannot start the activity from received instance.</p>
  
  <p>**> if i call startActivity method from the received instance of the</p>
  
  <blockquote>
    <p>current activity Exceptions occurs stating that its a call from non
    ui-thread**</p>
  </blockquote>
  
  <p>i'm using a class extended to surface view and passed to a thread which draws on its canvas</p>