Code example for SurfaceHolder

Methods: getSurface

0
 
	@Override 
	public void surfaceCreated(SurfaceHolder holder) {
		try { 
			if(!mInitSuccesful)
				initRecorder(mHolder.getSurface());
		} catch (IOException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
	} 
	 
	@Override 
	public void surfaceDestroyed(SurfaceHolder holder) {
		shutdown(); 
	} 
	 
	@Override 
	public void surfaceChanged(SurfaceHolder holder, int format, int width,
			int height) {}