code: @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
      public static boolean hasAppWidgetFeature(PackageManager manager) {
          return manager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS);
      }
docs: Checks if the device has an app widget feature.
  @param manager the package manager.
  @return {@code true} if the device has an app widget feature.