get Available Cameras Count - Android Camera

Android examples for Camera:Camera Attribute

Description

get Available Cameras Count

Demo Code


//package com.java2s;

import android.hardware.Camera;

public class Main {
    public static int getAvailableCamerasCount() {
        return Camera.getNumberOfCameras();
    }//from  w  ww  .  ja  va 2  s.c  o  m
}

Related Tutorials