HiHealth Core is an open platform for the fitness and health field under HMS Core. The third-party app is able to develop their specific apps using the fitness and health data provided by the HiHealth Core platform. The HMS Core is embedded in the mobile phone. The HiHealth Core subsystem will be dynamically loaded by the HMS Core when necessary. The Hmssdk-hwid is applied to process users' login and authorization scopes. The Healthsdk is the JAR package for third-party apps to connect with the HiHealth Core platform.

This codelab provides a basic third-party app development example. The developer only needs to complete the corresponding code fragment to realize the function development of real-time step counting. This function displays the real-time step count curve, step frequency, total number of steps, and calories burnt on the UI.

Hardware Requirements

Software Requirements

What You Need to Be Familiar with

1.Run the initial project (download the original framework code):

2.Add Login.

3.Authorization.

4.Register a listener of the real time data.

5.Read and Process the real time data from the sensor.

6.Unregister the listener.

7.Try the implementation on a mobile phone:

The following figure shows the implementation.

Well done. You have successfully completed this codelab and learned:

  1. Connect to the openness capabilities of HUAWEI HiHealth Core.
  2. Read data from the sensor in real time.

Download source codeDownload source codettonDownload source code

已复制代码