com.samsung.android.service.health.tracking

Enum HealthTracker.TrackerError

    • Enum Constant Detail

      • SDK_POLICY_ERROR

        public static final HealthTracker.TrackerError SDK_POLICY_ERROR
        SDK policy represents a relationship between a partner application and the Health Platform. A partner application that uses Samsung Health Sensor SDK requires you to register application information in Samsung's system, including an application package name, signature (SHA256), and available tracker types.
        SDK_POLICY_ERROR occurs in the following cases:

        • If a running application's package name is not matched with a SDK policy.
        • The running application's package name is matched, but its signature (SHA256) is not.
          To test the application, activate the Health Platform's developer mode. Find more information in the SDK guide.
        • The health tracker type is not registered.
        • A network is not connected or the connection quality is not good.

        Solving this error requires the Samsung Health team's support. Please submit an issue with a bug report at Samsung developer site > Developer Support.
        See more information in the SDK guide > Developer Support.

        Since:
        1.0.0
        See Also:
        HealthTracker.TrackerEventListener.onError(HealthTracker.TrackerError)
    • Method Detail

      • values

        public static HealthTracker.TrackerError[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (HealthTracker.TrackerError c : HealthTracker.TrackerError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static HealthTracker.TrackerError valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null