get Number Of Cameras - Android android.hardware

Android examples for android.hardware:Camera State

Description

get Number Of Cameras

Demo Code

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();
  }

}

Related Tutorials