The SDK's Health Data provides a StepDiary sample application to read the daily step count.
Prerequisites to run StepDiary are:
Prepare an Android device that supports Android 6.0 Marshmallow (API level 23) or above. (Samsung and non-Samsung devices are available both.)
Add the StepDiary app's dev access code developer mode.
Import StepDiary with Android Studio (or Eclipse).
Run StepDiary on the device.
StepDiary demonstrates how to use Health Data's APIs for retrieving the daily step count with HealthConstants.StepCount and daily step count trend data types.
HealthConstants.StepCount
It shows how to handle the step's binning data every 10 minutes.
StepDiary's sources and resources are:
<meta-data>
java/com/samsung/android/app/stepdiary
ConnectionListener
HealthConstants.StepDailyTrend