code: @TargetApi(Build.VERSION_CODES.FROYO)
      public static boolean hasLocationFeature(PackageManager manager) {
          return manager.hasSystemFeature(PackageManager.FEATURE_LOCATION);
      }
docs: Checks if the device has a location feature.
  @param manager the package manager.
  @return {@code true} if the device has a location feature.