Health Connect is an Android platform that allows health and fitness apps to use the same on-device data, within a unified ecosystem.
Questions tagged [healthconnect]
19 questions
1
vote
0 answers
Android - HealthConnectClient.readRecords or aggregateGroupByPeriod takes forever
Below codes takes forever to execute. Get it from official docs. HealthConnect is installed on the device.I believe there is an inner error that i cant see in logs of IDE. Code is called from java class.
What can cause this?
companion object {
…

Mert Serimer
- 1,217
- 2
- 16
- 38
1
vote
1 answer
Observing heart rate data in Health Connect
I've noticed that FitBit updates Health Connect once a minute with the latest heart rate read. I was wondering if there is a way to subscribe to those updates via the new Health Connect API. The documentation around how to approach the solution is…

Ana
- 67
- 5
0
votes
0 answers
Filter HealthConnect activity source
I use HealthConnect to get data about user steps over a certain period of time.
For more security, I filter the activity source using the data originFilter field in AggregateRequest. Thus, the data comes to my application only from Google…

Rasul Mingazov
- 1
- 1
0
votes
0 answers
HealthConnect Rate Limited request Quota has been exceeded
So I am working on a project that uses health connect to display user health related data(Steps, Heart Rate...). But currently my app crashes with the following error sometimes:
android.os.RemoteException: Request rejected. Rate limited request…

Kam5678
- 1
- 2
0
votes
0 answers
Sync Google Fit to Samsung Health using health connect
i was trying to sync the record from google fit to samsung health using the google health connect.
what i understand that i should be able to upload my health records from google fit to samsung health but my both apps is not showing the same…
0
votes
1 answer
Confusions on reading Health data from Wear OS watch on Android
I am creating an app for Android phones. I want to read data from Samsung watch 5 in that app. There is a lot of confusion.
Should I use
Google Fit API
OR
Health Connect ?
I started with "Health Connect" as I am under the impression that it'll…

M. Usman Khan
- 3,689
- 1
- 59
- 69
0
votes
0 answers
Android - Mindfulness Data using Health Connect
I'm doing Mindfulness reading data using Health Connect SDK, but I can't find Mindfulness data like hours of mindful or something like that in the SDK.
In list of Data types I saw in Activity type:
"Activity: This captures any activity that a user…

Ho Luong
- 726
- 8
- 12
0
votes
1 answer
Does Health Connect available for Wear OS..?
I want to implement Health Connect on Wear OS-based SmartWatch.
But not getting any concreate information whether Health Connect supports Wear OS or not.
Also, Health Platform is going to deprecate soon.
Please guide.

SaurabhG
- 173
- 1
- 11
0
votes
1 answer
How to read activity GPS track from Health Connect?
I'm building a Kotlin project in Android Studio and having troubles grabbing GPS data from Health Connect. I went for a walk, synced my FitBit to Health Connect, and now I'd like to grab the GPS Track from my activity and use my app to process the…

beebopbogo
- 29
- 4
0
votes
1 answer
health connect still provides data where there should be no data
i try to collecting data from 1 april 2023 to 30 april 2023, today is 20 april 2023 but health connect still provides data for > 20 april 2023 like this
i don't know where the data is coming from, i just sync google fit data to health connect, when…

Rizki Rakasiwi
- 81
- 5
0
votes
0 answers
How to get vo2_max and location in wear os using health services
I used health service to get vo2_max and location by starting an exercise.
suspend fun startExercise(healthServicesClient: ExerciseClient) {
val dataTypes =…

neeraj s
- 11
- 2
0
votes
0 answers
How to get blood oxygen and blood pressure in wear os
how to get blood oxygen and blood pressure in wear os using sensor like getting step count value.
By using health services to get these data, how to access sensors. And I'm also trying it in flutter. You can give me any suggestions to get the data…

neeraj s
- 11
- 2
0
votes
0 answers
AAR Library dependencies not able to resolve in Consuming Host App
I created a Library project with HealthConnect SDK extending its functionality. I made a Host App that consumes that Library and accesses the features of the Library i.e. HealthConnect calls.
The structure looks like this:-
MY-LIBRARY
Retrofit…

Appoorva Faldu
- 344
- 4
- 17
0
votes
1 answer
How to architecturally implement the HealthConnect Client inside a helperclass?
Im trying to implement the HealthConnect utilities inside a helperclass that handles the object usage, permission handling and availability of Health Connect on the users phone, however I have problems to find the right architecture that handles all…

Kinematikk
- 15
- 4
0
votes
1 answer
HealtConnect error: app must be in foreground to read the following data types
Our app integrates with Health Connect, and I see a lot of following non-fatal errors in Firebase Crashlytics:
Non-fatal Exception: android.os.RemoteException: xxx.xxx.xxx must be in foreground to read the following data types [ActiveTime,…

Ana
- 67
- 5