Code example for Camera

Methods: releasesetPreviewCallbackstopPreview

0
 
	@Override 
	protected void onStop() { 
		super.onStop(); 
		// Stop the camera preview. 
		camera_.stopPreview();
		camera_.setPreviewCallback(null);
		camera_.release();
	} 
 
	/** An RGB triplet. */ 
	private static class RGB { 
		byte r;
		byte g;
		byte b;
 
		RGB() { 
			clear(); 
		} 
 
		public void clear() {