code: @TargetApi(Build.VERSION_CODES.GINGERBREAD)
      public static boolean hasFrontCameraFeature(PackageManager manager) {
          return manager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT);
      }
docs: Checks if the device has a front camera.
  @param manager the package manager.
  @return {@code true} if the device has a front camera.