Open Camera - Android Camera

Android examples for Camera:Open Camera

Description

Open Camera

Demo Code


//package com.java2s;
import android.hardware.Camera;

public class Main {
    private static Camera camera = null;

    private static void checkCamera() {
        if (camera == null)
            camera = Camera.open();/*from www. j  a v a 2  s.c  om*/
    }
}

Related Tutorials