title: How to stop the SurfaceView in Android?
body: <p>Recently when writing a game I experienced a problem. In my game I used <code>SurfaceView</code> and I used the <code>while(true)</code> as the condition. After I press the home button, the program quits and I see the log. But I find the loop  <code>While(true)</code>  is still running. Why is the loop still running after the Activity has stopped? Could anybody help and tell me the reason. Thanx</p>