Java tutorial
//package com.java2s; import android.hardware.Camera; public class Main { public static boolean isCameraFacingBack(int cameraID) { Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); Camera.getCameraInfo(cameraID, cameraInfo); return (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK); } }