Code example for Camera

Methods: releasesetPreviewCallbackstopPreview, toString

0
		CountDownTimer countDownTimer = new CountDownTimer(1000, 1000) {
 
			@Override 
			public void onFinish() { 
				if(camera != null){
					Log.d("CAMERA1", camera.toString());
					camera.setPreviewCallback(null);
					Log.d("CAMERA2", camera.toString());
					camera.stopPreview();
					Log.d("CAMERA1", camera.toString());
					camera.release();
			        camera = null;			
			        camera.release();
			        camera = null;
				} 
			} 
 
			@Override 
			public void onTick(long millisUntilFinished) {
			} 
		};