Introduction
Install the rook-sdk-samsung library and learn about its features.
Features
- Get authorization.
- Register users.
- Sync Samsung Health summaries and events.
- Schedule automatic Samsung Health data syncs in background.
Restrictions
- Samsung Health Data SDK requires Samsung Health v6.29 or later version installation.
- Samsung Health runs on devices with Android 10 (API level 29) or above. It is available on all Samsung smartphones and also non-Samsung Android smartphones.
- The SDK doesn’t support an emulator.
Development environment
Android Studio
Android Studio Narwhal 4 Feature Drop | 2025.1.4 or higher is recommended.
Installation
In your build.gradle (app module) add the required dependencies.
Copy the samsung-health-data.aar file to your project libs directory:
- Latest version:
- Latest stable version: 4.0.0
- LTS version (supported until September 27, 2026): 1.1.0
dependencies {
implementation("io.tryrook.android:rook-sdk-samsung:version")
implementation(files("$rootDir/libs/samsung-health-data-api-1.0.0.aar"))
// Used by Samsung Health Data AAR:
implementation("com.google.code.gson:gson:2.13.2")
}
Apply the Kotlin parcelize plugin to your app module:
[versions]
kotlin = "2.1.21"
[plugins]
org-jetbrains-kotlin-plugin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
plugins {
alias(libs.plugins.org.jetbrains.kotlin.plugin.parcelize)
}