Questions tagged [google-fit]

Google Fit is an open platform that lets users control their fitness data. Use this tag for questions about programming apps that interface with Google Fit or use any of its APIs or SDKs. General end-user support is off-topic.

Description

Google Fit is an open ecosystem that allows developers to upload fitness data to a central repository where users can access their data from different devices and apps in one location:

  • Fitness apps can store data from any wearable or sensor.
  • Fitness apps can access data created by any app.
  • User's fitness data is persisted when they upgrade their fitness devices.

References

967 questions
11
votes
6 answers

How to disable Google Fit and revoke permissions from the app itself

I've setup app that connects to Google Fit, reads and writes some data about users body. When user disables Google Fit in apps settings, I try to revoke my apps permissions for by calling: public void disableGoogleFit(){ …
Jaroslav
  • 1,389
  • 14
  • 27
10
votes
3 answers

Create Doughnut Chart Similar to Google Fit

Does anyone know how to create a doughnut chart similar to the one in Google Fit.
Chris D
  • 810
  • 1
  • 9
  • 21
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
9
votes
2 answers

Is there a way to read daily resting heart rate from the Google Fit API?

The iOS Google Fit app shows Resting Heart Rate as one of it's metrics (I have not seen it in the Android Google Fit app, however). I would like to show Resting Heart Rate in an Android app using Google Fit Data. However, the Android Google Fit API…
Steve Zeidner
  • 173
  • 1
  • 7
9
votes
1 answer

GoogleFit distinguish data between from different devices

I am using GoogleFit HistoryAPI for get step data from user. It's working well. However, in my case, I want to distinguish data between from different devices (using same account) because I don't want user using same account for 2 or more devices…
Linh
  • 57,942
  • 23
  • 262
  • 279
9
votes
8 answers

Google Oauth 2.0 RESULT_CANCELED while using Google Fit api

I am trying to use google fit api in my android app. I followed this guide and created SHA-1 certificate using keytool.exe in my jdk 1.8 bin folder. I have now created Oauth Client ID. In my app, I get RESULT_CANCELED here: @Override protected void…
Harshil Pansare
  • 1,117
  • 1
  • 13
  • 37
9
votes
1 answer

Why is my wearable not listed as DataSource in Google Fit API?

I'm trying to access the heart rate monitor of a Samsung Gear Live watch. The watch is paired with a 4.4.4 handset and works correctly. I'm following the official BasicSensorsApi sample. I can successfully connect to Google Play Services with the…
EyesClear
  • 28,077
  • 7
  • 32
  • 43
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
2 answers

Read BloodPressure and BloodGlucose dataSource from google api fitness playground

If I go to google api playground I do the following steps: Step 1: Select & authorize APIs. I select the two scopes https://www.googleapis.com/auth/fitness.blood_glucose.read https://www.googleapis.com/auth/fitness.blood_pressure.read cause I…
Zu1779
  • 2,178
  • 1
  • 18
  • 17
8
votes
1 answer

What is the usage of OAuth 2.0 client id from Google Fit on Android

Im really confused from Google Api platform. Recently guide leads you to generate oAuth Client ID JSON. On the other hand there is no clear reason or need to generate or have at all. Im doing these steps to enable Google Fit on Android: Get a…
Maher Abuthraa
  • 17,493
  • 11
  • 81
  • 103
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

Accessing weight data via the Google Fit REST API

For the last 6 months I've been entering my weight into Google Fit, I now want to get my data out. Accessing the Google Fit REST API hasn't been an issue. Finding my weight data amongst the all the accessible data has stumped me however. Any…
Dogsbody
  • 293
  • 1
  • 11
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
6 answers

onActivityResult deprecated, how to handle google signin in fragment for android(Java)?

@Override **//depricated** public void onActivityResult(int requestCode, int resultCode, @Nullable @org.jetbrains.annotations.Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode ==…
user16388371
7
votes
0 answers

GoogleFit Rest API - Correct aggregate data source for daily steps

The APIs documentation says that, to get a result like the Google Fit App, one should request the steps of the derived:com.google.step_count.delta:com.google.android.gms:estimated_steps…
Mr. V
  • 71
  • 6
1
2
3
64 65