目录

Service Introduction

Health Service Kit provides the following key APIs for the Android client:

DataController

Overview

Manages health and fitness data. You can use the API to add, delete, modify, and query data, as well as query the statistics of the current day and past days.

Application Scenarios
  • Call insert to insert health and fitness data to Health Service Kit.
  • Call delete to delete health and fitness data from Health Service Kit.
  • Call update to update health and fitness data in Health Service Kit.
  • Call read to read health and fitness data from Health Service Kit.
  • Call readTodaySummation to read the accumulated health and fitness data of the current day (from 00:00 a.m. in the system time zone of the device to the current time) from Health Service Kit.
  • Call readDailySummation to read the accumulated health and fitness data of multiple days from Health Service Kit.
  • Call readLatestData to query the latest health and fitness data from Health Service Kit.
  • Call clearAll to delete all device-side and cloud-side data inserted by the app from Health Service Kit.

ActivityRecordsController

Overview

Manages exercise record data. You can use the API to write/read exercise records and start/end a new exercise record.

Application Scenarios

HealthRecordController

Overview

Manages health record data. You can use the API to add, delete, modify, and query data.

Application Scenarios

AutoRecorderController

Overview

Reads sensor data in real time (such as real-time step count).

Application Scenarios

Supported Devices

Device Type

OS Version

HMS Core (APK) Version

Huawei Health App Version

Mobile phones

EMUI 5.0 or later, Android 7.0 to Android 16

4.0.2.300 or later

11.0.0.512 or later