is Current Camera Front Facing - Android Camera

Android examples for Camera:Front Camera

Description

is Current Camera Front Facing

Demo Code


//package com.java2s;

import android.hardware.Camera;

public class Main {
    public static boolean isCurrentCameraFrontFacing() {
        int mNumberOfCameras = Camera.getNumberOfCameras();
        boolean returnValue = false;
        if (mNumberOfCameras > 1)
            returnValue = true;//w ww.j  av  a  2  s .  com
        return returnValue;
    }
}

Related Tutorials