title: Double buffering in Java on Android with canvas and surfaceview
body: <p>How does one go about doing this? Could somebody give me an outline?</p>
  
  <p>From what I've found online, it seems like in my run() function:</p>
  
  <ol>
  <li>create a bitmap</li>
  <li>create a canvas and attach it to the bitmap</li>
  <li>lockCanvas()</li>
  <li>call draw(canvas) and draw bitmap into back buffer (how??)</li>
  <li>unlockCanvasAndPost()</li>
  </ol>
  
  <p>Is this correct? If so, could I get a bit of an explanation; what do these steps mean and how do I implement them? I've never programmed for Android before so I'm a real noob. And if it isn't correct, how DO I do this?</p>