Android Camera Check isCameraFlashSupported(Context context)

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

Description

is Camera Flash Supported

Declaration

public static boolean isCameraFlashSupported(Context context) 

Method Source Code

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

public class Main {
    public static boolean isCameraFlashSupported(Context context) {
        return context.getPackageManager().hasSystemFeature(
                PackageManager.FEATURE_CAMERA_FLASH);
    }//from  w w w .  ja va 2 s  .  c o  m
}

Related

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