Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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");
        }
    }
}