Android Camera Check deviceHasCamera(Context context)

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

Description

device Has Camera

Declaration

public static boolean deviceHasCamera(Context context) 

Method Source Code

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

public class Main {
    public static boolean deviceHasCamera(Context context) {
        return context.getPackageManager().hasSystemFeature(
                PackageManager.FEATURE_CAMERA);
    }//from  ww w  .  j  a  v a 2  s  .  co m
}

Related

  1. checkCameraHardware(Context context)
  2. checkCameraHardware(Context context)
  3. checkCameraHardware(Context context)
  4. checkCameraHardware(Context context)
  5. checkFrontCamera(Context context)
  6. sizeSupported(Camera.Parameters cp, CamcorderProfile profile)
  7. hasFlash(Camera mCamera)
  8. findBestPreviewSizeValue( Camera.Parameters parameters, Point screenResolution)