title: Using a custom SurfaceView and thread for Android game programming (example)
body: <p>I am trying to use SurfaceView, but the <code>lockCanvas(null)</code> is confusing, and the app freezes when I exit the activity. Also, nothing is displayed, even though the tutorial I was using was working perfectly fine, and I don't understand what I am doing wrong. Please help.</p>