Code example for Camera

Methods: setFaceDetectionListener

0
 
	@Override 
	public void surfaceCreated(SurfaceHolder holder) {
		// TODO Auto-generated method stub 
		camera = Camera.open(1);
		camera.setFaceDetectionListener(faceDetectionListener);
	} 
 
	@Override 
	public void surfaceDestroyed(SurfaceHolder holder) {
		// TODO Auto-generated method stub 
		camera.stopFaceDetection();
		camera.stopPreview();
		camera.release();
		camera = null;
		previewing = false;
	} 
 
}