is Back Camera Supported - Android Camera

Android examples for Camera:Back Camera

Description

is Back Camera Supported

Demo Code


//package com.java2s;

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

public class Main {
    public static boolean isBackCameraSupported(Context ctx) {
        PackageManager pm = ctx.getPackageManager();
        return pm.hasSystemFeature(PackageManager.FEATURE_CAMERA);
    }/*  ww w .  j  ava  2 s.  com*/
}

Related Tutorials