Code example for SurfaceHolder

Methods: addCallback, setSizeFromLayout, setType