The following are needed to do this Code Lab activity:
Android 6.0 Marshmallow or above
Samsung Health installation
Samsung Health’s Developer Mode on
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.
Here is a sample code for you to start coding this activity. Feel free to download them and start your learning experience!