Android examples for Camera:Open Camera
Open Camera
//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*/ } }