Android examples for android.hardware:Camera State
get Number Of Cameras
import android.hardware.Camera; public class Main { /**//from ww w .j a va2 s . c o m * Get the number of cameras that the android device owned. * * @return number of cameras. */ public static int getNumberOfCameras() { return Camera.getNumberOfCameras(); } }