Code example for SurfaceView

Methods: getHolder

0
				closeOverlay(); 
			} 
        	 
        }); 
         
        mSurfaceView = new SurfaceView(this);
         addContentView(mSurfaceView, new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));
       mSurfaceHolder = mSurfaceView.getHolder();
       mSurfaceHolder.addCallback(this);
       mSurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
       addContentView(mOverlayView, new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));
 
       } 
     
 
    private void closeOverlay () 
    { 
    	 
    	if (cameraOn)
    	{ 
Experience pair programming with AI  Get Codota for Java