Code example for SurfaceView

Methods: getHeight, getWidth

0
	} 
 
	public void surfaceCreated(SurfaceHolder holder)
	{ 
		// Draw the joy stick on the surface as soon as ready 
		drawJoystick(svTouchArea.getWidth() / 2, svTouchArea.getHeight() / 2);
	} 
 
	public void surfaceDestroyed(SurfaceHolder holder)
	{ 
		// Not used 
	} 
}