When I used
getPackageManager().hasSystemFeature(FEATURE_CAMERA) I got a warning indicating to use
FEATURE_CAMERA_ANY instead of
FEATURE_CAMERA to include devices with front camera as well.
FEATURE_CAMERA refers to back-facing camera or the camera that is on the rear side of the smartphone and
FEATURE_CAMERA_ANY means any camera - it includes front…