code: @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
      public static boolean hasWifiDirectFeature(PackageManager manager) {
          return manager.hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT);
      }
docs: Checks if the device has a WIFI Direct.
  @param manager the package manager.
  @return {@code true} if the device has a WIFI Direct.