is Camera Supported - Android Camera

Android examples for Camera:Camera Feature

Description

is Camera Supported

Demo Code


//package com.java2s;

import android.hardware.Camera;

public class Main {
    public static boolean isCameraSupported(int cameraId) {
        return (Camera.getNumberOfCameras() > cameraId);
    }/*www .j  av  a 2s  .  c o m*/
}

Related Tutorials