title: Restarting/Pausing Thread in onResume/onPause
body: <p>I'm have a game that's uses SurfaceView implementation to display the objects.
  I have a thread which draws the SurfaceView time-to-time to the screen.
  The game is running completely.
  Unfortunately, it needed to have a pause function whenever the game is interrupted.
  Well, I know that I need to manipulate <code>onResume</code> and <code>onPause</code>.</p>
  
  <p>But I can't get it right. The error points me back to <code>surfaceCreated</code> where I start the thread telling me that the thread has started already. I tried using the <code>resume</code> and <code>suspend</code> on the <code>onResume</code> and <code>onPause</code> respectively but nothing changed.</p>
  
  <p>How can I achieve this?
  I have already done how the objects location would be save using File-I/O handling.</p>
  
  <p>Thanks in advance.</p>