Unresolved reference: healthdata

Hello, I have to problem “Unresolved reference: healthdata” in my code when i am trying to do “import com.samsung.android.sdk.healthdata.HealthConstants”. I have put everything in my app libs folder and declared it in my manifest.

Check out the blog tutorials for Wear OS Health that should help you get started.

If that doesn’t help let us know.

Ron
Samsung Developer Relations

I didn’t really found smth that could help me beacuse i have an import problem. I’ve also read some articels but i didnt found smth.

What API are you using? Are you a Samsung Health partner?

Ron
Samsung Developer Relations

I downloaded the SDK from here https://developer.samsung.com/health/android/overview.html
And then put the lib folder into my Android studio project. And no i am not a Samsung Health partner.

That was for used with Tizen based Watches (Galaxy Watch3 and older) and you need to be accepted as a health developer partner and they would send you a key that unlocks permissions for your computer. However they aren’t doing developer partners any longer.

For Galaxy Watch4 and newer and all Watches running Wear OS 3 you use Health Services for Wear OS and that is on Android site.

Documentation for this is on the Android Site

Check out the blog tutorials for Wear OS Health that should help you get started.

Ron
Samsung Developer Relations

1 Like