Double buffering in Java on Android with canvas and surfaceview -


how 1 go doing this? give me outline?

from i've found online, seems in run() function:

  1. create bitmap
  2. create canvas , attach bitmap
  3. lockcanvas()
  4. call draw(canvas) , draw bitmap buffer (how??)
  5. unlockcanvasandpost()

is correct? if so, bit of explanation; these steps mean , how implement them? i've never programmed android before i'm real noob. , if isn't correct, how do this?

it's double buffered, that's unlockcanvasandpost() call does. there no need create bitmap.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -