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
3
votes
0 answers

My app doesn't find the DataSource associated with the SmartBand 2 bracelet step counter sensor Google Fit API

My app doesn't find the DataSource associated with the SmartBand 2 bracelet step counter sensor, but if it finds the heart rate sensor y updates events in the onDatapoint method, what could be the problem? I try with My code is as follows: …
ja12
  • 351
  • 2
  • 16
3
votes
2 answers

Having trouble connecting to Google Play Services; Getting Cancelled status code

So I'm trying to work with Google Fit and for some reason I can't connect to Google Play Services in my app. I have the OAuth all set up completely and I tested it in another app and it all worked just fine. Specifically look at the…
user292277
  • 101
  • 2
  • 5
3
votes
1 answer

Google fit Recording API delay

So I'm writing a fitness application for android. I'm using the Google fit API to count the steps. I'm using the Recording API to count the steps when the app is in the background. Once the app is in the foreground I'm fetching the steps count with…
3
votes
3 answers

Not cheatable Google fit step counter

i have a question to Google Fit. I am creating a step counter (oh wonder g). This i have already done so far and it not really hard. But now we come to my problem. I am only reading the steps with the Sensor API. The issue is, i can add new data via…
Moritz
  • 401
  • 5
  • 19
3
votes
1 answer

Manual Data flag in Google Fit Android API?

Does the Google Fit API provide any flag to indicate the data was entered manually in the app.If yes, please suggest which needs to checked for that as the requirement is to process only the device collected data and not the manual entries in…
May13ank
  • 548
  • 2
  • 9
  • 24
3
votes
0 answers

How to get users location bounding box from google fit api

I'm trying to get the users step count and location bounding box in the last 24 hours from google fit API. I don't have a problem with the step count but i'm getting an error for the location. CODE: @Override protected void onStart() { …
ilan
  • 4,402
  • 6
  • 40
  • 76
3
votes
2 answers

How to find which account (email) has user used to log into my google-fit based android app?

I am trying to make an android app based on google-fit. What I am trying to achieve is that I create an account for the user on my website as soon as the user chooses an account using the app. Here is the code base that I want to build up upon (It…
Ishan
  • 3,303
  • 5
  • 29
  • 47
3
votes
0 answers

google fit sdk running distance

I am trying to find the distance the user has runned using the Google Fit SDK. Currently i am using this piece of code DataReadRequest readRequest = new DataReadRequest.Builder().aggregate(DataType.TYPE_DISTANCE_DELTA, …
3
votes
0 answers

How to get the data source for the data points saved by Google Fit?

I'm trying to get the data inserted by Google Fit, but only the one that was actually recorded by the sensors and not inserted manually. I thought of checking the data source but it always returns null. Here's the code I used: DataReadRequest…
Simas
  • 43,548
  • 10
  • 88
  • 116
3
votes
1 answer

Distance in Fit Api

I'm having trouble obtaining distance traveled using Google Fit Api. I used a similar approach for pedometer and it worked. It just says listener registered. Most of the code is from the Github sample. What could be wrong? public class MainActivity…
kienme
  • 31
  • 5
3
votes
2 answers

Error in retrieving google fit steps

I am using this code to try and retrieve steps made in the last 14 hours. YApp myApp = (mYApp) ctx; mGoogleApiClient = myApp.getMyUser(); mGoogleApiClient.reconnect(); Calendar cal = Calendar.getInstance(); Date now…
dave
  • 1,410
  • 1
  • 16
  • 42
2
votes
0 answers

Google Fit steps do not match with History Api response

Got a problem with Google Fit steps integration. The customers complain that the numbers imported from the Google Fit are not the same as the ones Google Fit shows in its own Fit app. As per Google Fit documentation “to get the same daily step count…
2
votes
0 answers

App isn't verified Google Fit SDK with right SHA1

I'm using Google App Signing for my app that integrates the Google Fit SDK (so OAuth). I've already added the SHA1 fingerprint of Google signing certificate in my Firebase Project Settings and updated my google-services.json in app. Still, when I…
Jumpa
  • 4,319
  • 11
  • 52
  • 100
2
votes
0 answers

Google FIT API Request not working - no data returned

My Goal: I wanted to retieve my Step Counter data from Google FIT API with a small Android App. Therefore I tried the tutorial code: I implemented the log in code which is necessary to use Google FIT…
2
votes
2 answers

Google Fit Authorization : AUTH_DENIED Authorization cancelled

I need immediate help about Authorization. I cannot Authorize to Google Fit. I get AUTH_DENIED Authorization cancelled in my console. Here is what I did step by step. I am going to get crazy about it. This is my function where I am trying to…