Code example for Camera

Methods: startPreview

0
		{ 
			//Parameters params = camera.getParameters(); 
			//params.setPreviewSize(w, h); 
			//params.setPictureFormat(PixelFormat.JPEG); 
	        //camera.setParameters(params); 
	        camera.startPreview(); 
		} 
 
		public void surfaceDestroyed(SurfaceHolder arg0) 
		{ 
			// TODO Auto-generated method stub 
			camera.stopPreview(); 
			camera.release(); 
			 
		} 
    }; 
	public CustomCameraView(Context ctx)
	{ 
		super(ctx);
		 
		previewHolder = this.getHolder();