is Front Camera Supported - Android Camera

Android examples for Camera:Front Camera

Description

is Front Camera Supported

Demo Code


//package com.java2s;

import android.content.Context;
import android.content.pm.PackageManager;

public class Main {
    public static boolean isFrontCameraSupported(Context ctx) {
        PackageManager pm = ctx.getPackageManager();
        return pm.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT);
    }//w w  w  . j a  v a  2  s . c  o  m
}

Related Tutorials