Example code that handles the full game lifecyle properly
<p>I am attempting to write an android game involving a class which extends SurfaceView and implements SurfaceHolder.CallBack. The class then creates its own thread which may need to be paused/unpaused appropriately. I wanted to use the example Lunar Landeras a reference, but this seems not to implement all sorts of essential things and it will occasionally crash on my phone.</p>

<p>What I am looking for is the <strong>simplest possible</strong> game which employs SurfaceView's, SurfaceHolder.CallBack's Threads and clearly handles all the game lifecycle events like onPause, onStop, onRestart etc - and without ever crashing.</p>

<p>Does such an example game exist?</p>
