Java tutorial
//package com.java2s; import android.hardware.Camera; import android.util.Log; public class Main { public static Camera mCamera = null; public static void releaseCamera() { if (mCamera != null) { mCamera.stopPreview(); mCamera.release(); mCamera = null; Log.d("Visionin", "releaseCamera -- done"); } } }