title: How to finish an activity from surfaceView and call new activity with extras
body: <p>I am making a game application in android.  In this am having an menu activity which have  <code>setContentView(new MainGamePanel(this));</code>, MainGamePanel implements surface view where all my game functionaly is written. Now on some condition my game fail than i want to display a new Finish activity with score i accoured while playing. 
  I this Finish activity i have two buttons one for replay and one for exit.</p>
  
  <p>but am not getting how to finish activity from surfaceView and call a new activity with score.</p>