Code example for Camera.PreviewCallback

Methods: onPreviewFrame

5
	    } 
	  
	@Override 
	public void onPreviewFrame(byte[] data, Camera camera) {
	    	if (callback!=null)
	    		callback.onPreviewFrame(data, camera);        	
	} 
 
	@Override 
	public void surfaceChanged(SurfaceHolder holder, int format, int width,
			int height) {
		// TODO Auto-generated method stub 
		 
	} 
 
	@Override 
	public void surfaceCreated(SurfaceHolder holder) {
		System.out.println("Surface Created - CAM");
		mCamera = Camera.open();
		 
    	Camera.Parameters p = mCamera.getParameters();