Code example for GestureDetectorCompat

0
	 
	private void init() 
	{ 
		getHolder().addCallback(this);
		thread=new MySurfaceThread(getHolder(),this);
		gestureDetector=new GestureDetectorCompat(context,this);
		 
		 
		 
	} 
	@Override 
	public void surfaceChanged(SurfaceHolder arg0, int arg1, int width, int height) {
		 
		 
	} 
	 
	@Override 
	public void surfaceCreated(SurfaceHolder arg0) {
		// TODO Auto-generated method stub 
		thread.setDestroying(false);
		thread.setRunning(true);