Setup

The following are needed to do this Code Lab activity:

  1. Galaxy Watch

  2. Mobile Phone

    • Android 6.0 Marshmallow or above

    • Samsung Health installation

    • Samsung Health’s Developer Mode on

  3. Android Studio

Health SDK 101: Wearable’s Data Sync

Galaxy Watch’s health data is synced to a phone’s Samsung Health.

Steps, exercise, floor climbed, or sleep data are included.

Health SDK 101: step_daily_trend’s All Steps

It provides the combined step count of all connected devices.

It summarizes all devices’ steps without duplication even when the user carries more than one device at the same time.


Sample Code

Here is a sample code for you to start coding this activity. Feel free to download them and start your learning experience!

Basic Health Dashboard Sample Code377.91 KB