Questions tagged [google-fit-sdk]

An open platform that lets users control their fitness data. Google Fit lets developers build smarter apps and manufacturers focus on creating amazing devices.

About

Google Fit's open APIs allow any connected apps and devices to seamlessly share data, all of which gets sucked up by Google Fit.

Links

Official Page

263 questions
19
votes
1 answer

Android: How to get Google Fit data from Wearable device?

I'm following the same steps described here (the Google Fit client connection part is working fine). final DataType dataType=TYPE_STEP_COUNT_DELTA; DataSourcesRequest requestData = new DataSourcesRequest.Builder() …
user3290180
  • 4,260
  • 9
  • 42
  • 77
17
votes
5 answers

Step count retrieved through Google Fit Api does not match Step count displayed in Google Fit Official App

I have developed an application that needs to display daily steps count. To do this, I used the API available in Google Fit SDK. All seems to be working properly, but the steps count I get does not match to the one displayed in Google Fit Official…
Thomas Thomas
  • 824
  • 1
  • 9
  • 21
14
votes
1 answer

Google Fit SessionsApi not returning all sessions in time range

Somehow I've run into a dead end with the Google Fit Android SDK. Currently I'm building an application that reads, displays and processes data from Google Fit to give users insights on their workout behavior. My situation is as follows: I used to…
damian
  • 2,001
  • 20
  • 38
14
votes
3 answers

Get Current Activity from Google Fit API Android

I am working on demo application to get current activity sample using Google Fit. I can get Speed as well as Distance correctly. But it is not returning "in_vehicle" or "biking" state very frequently though I was in the same state. Find attached…
steve
  • 1,365
  • 4
  • 19
  • 33
12
votes
3 answers

Android ACTIVITY_RECOGNITION Permission SDK 28 running on Android 10/Q (SDK 29)

My Android app targets SDK 28 and connects to Google Fit to upload data and read some other data. The app uses the HistoryAPI to read com.google.step_count.delta data. This documentation claims that…
10
votes
2 answers

Access Android Wear Fit Data

I'm developing an app for Android Wear on Samsung Gear Live (Google I/O Edition) where it will need access heart rate and steps count history data. I know that later this data might be accessible using Google Fit SDK, but is it possible to read that…
Maksim
  • 16,635
  • 27
  • 94
  • 135
8
votes
1 answer

Fitness startBleScan successful but scan Stopped with MI Band 2

I want to request sensor data from my mi band 2 using my android app in real time. I have some difficulties with this. I use permissions BLUETOOTH and BLUETOOTH_ADMIN. I checked that I can see my device via Bluetooth le default API. I am trying to…
Vadim Eksler
  • 865
  • 9
  • 24
8
votes
0 answers

Geting smaller buckets from GoogleFit doesn't work

I am trying to get GoogleFit data with buckets of 15 minutes for the last 2 weeks. But for some reason the call to the HistoryApi does never finish, even if I wait some minutes. When using 1 hour buckets, it returns pretty fast. Are there any…
Georg
  • 3,664
  • 3
  • 34
  • 75
8
votes
1 answer

How to properly retrieve package name of the app that inserted data to Google Fit?

I have a following code I am using to retrieve a list of user's activities from Google Fit: public void getActivitiesData(Date from, Date till) { DataReadRequest readRequest = new DataReadRequest.Builder() …
Nikola Anusev
  • 6,940
  • 1
  • 30
  • 46
7
votes
1 answer

How to use the sensor flutter package for developing a step counter?

I am trying to make a step counter with the help of sensor flutter widget, I was having the look at sensor flutter package code but not getting a single point from where to start and how to achieve the required result. What are the things involved…
Tushar Rai
  • 2,371
  • 4
  • 28
  • 57
7
votes
3 answers

Scope for HealthDataTypes of Google Fit

I want to read HealthDataTypes. Which Scope must I set when creating GoogleApiClient? .addScope(new Scope(????))
ViT-Vetal-
  • 2,431
  • 3
  • 19
  • 35
7
votes
2 answers

Google Fit API, getting calories burned per activity

So I'm trying to create an app that connects to Google Fit and shows the user their data in a pretty streamlined way and I'm having trouble finding the calories the user burned for each individual activity per day. I can get the total calories for…
user292277
  • 101
  • 2
  • 5
7
votes
0 answers

Can I calculate the number of stairs climbed using the google FIT api?

I need to calculate the number of stairs climbed by the user using Google Fit API in my Android App. Is that possible?
Ramya Ramesh
  • 299
  • 3
  • 18
6
votes
1 answer

Google Fit data pattern change since Google fit App update, implementation apparently broken

We have identified in our user base that since the last google fit app update there's been a dramatic drop in data, and since it began we have tried to identify the issue in our code. Giving the timing, we thought the version we were using ( 18.0 at…
CptEric
  • 897
  • 9
  • 23
6
votes
0 answers

Collecting realtime heart rate data from Google Fit Sensor API

I’m currently working on a fitness android app that uses an external heart rate device and collecting data over Bluetooth low energy protocol. However, it is really hard to maintain that device, I'm considering to replace heart rate device with…
lbasek
  • 389
  • 3
  • 12
1
2 3
17 18