Android Camera Check isCameraSupported(Context context)

Here you can find the source of isCameraSupported(Context context)

Description

is Camera Supported

Declaration

public static boolean isCameraSupported(Context context) 

Method Source Code

//package com.java2s;
import android.content.Context;
import android.content.pm.PackageManager;

public class Main {
    public static boolean isCameraSupported(Context context) {
        return context.getPackageManager().hasSystemFeature(
                PackageManager.FEATURE_CAMERA);
    }/*from   w w w . ja va 2  s  .  c  om*/
}

Related

  1. isFrontCameraIntent(int intentCameraId)
  2. isMeteringAreaSupported(Parameters params)
  3. isVideoSnapshotSupported(Parameters params)
  4. throwIfCameraDisabled(Activity activity)
  5. isCameraFlashSupported(Context context)
  6. isPortrait(Context context)
  7. checkCameraHardware(Context context)
  8. checkCameraHardware(Context context)
  9. checkCameraHardware(Context context)