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

Google Fit Health Api - Fitness: Data point out of order

I do some readings in my app and I see that it works really slowly, and a bunch of these messages in the logs: 08-04 20:33:33.691 27900-18653/? W/Fitness: Trimming data point [13:00:00-13:39:00] outputted with range [13:38:00-13:39:00] …
Kaloyan Roussev
  • 14,515
  • 21
  • 98
  • 180
6
votes
3 answers

Are inactive calories on google fit wrong?

With "inactive cal" is google fit talking about "basic metabolic rate" ? Because the bmr is supposed to be costant but fit gives me a different number of "inactive cal" every day... Someone can explain me why? It pass from 1500 to 2100 depending on…
Adriano
  • 61
  • 1
  • 1
  • 3
6
votes
2 answers

How to identify google fit activity is entered manually or tracked by sensor?

We are working on an Android application which queries Google Fit API to retrieve Steps, Calories and Distance parameter. We want to query activities which are NOT manually entered by user (or somehow identify these kind of activity and ignore…
Amit
  • 1,365
  • 8
  • 15
6
votes
1 answer

How to remove a permission added because of Google Fitness API 7.5.0

After updating my play-services-fitness api from 7.0.0 to 7.5.0 I noticed that when I go to upload a new build to the PlayStore it tells me that I am adding a new permission and 2 new features. I did not do this! What the heck.
astryk
  • 1,256
  • 13
  • 20
6
votes
1 answer

GoogleApiClient class not found

I'm trying to use google fit api for getting step count. I'm using the starter guide When i try to paste the code private GoogleApiClient mClient = null; Android studio can't find the "com.google.android.gms.common.api" package and the …
ilan
  • 4,402
  • 6
  • 40
  • 76
6
votes
2 answers

Android Google Fit onConnectionFailed() SIGN_IN_REQUIRED

I can't seem to get round this issue. I just cannot sign in. I'm running the BasicSensorApi sample file and it just will not connect. It seems i'm getting RESULT_CANCELED even though i select an account on the dialog? Here is the end of my logcat…
Matt
  • 1,368
  • 4
  • 16
  • 32
6
votes
1 answer

Google fit data is different from device to device with same account

I have created a Google Fit application to read/write data from Google Fit. I have two devices linked to the same account, but I cannot see the data added from one device to another. How is this fixed?
Rakki s
  • 1,426
  • 1
  • 18
  • 42
5
votes
1 answer

Getting active time from Google Fit Rest API

I am struggling with matching the "active time" returned by Fit REST API with reality. As an example - on 12/14 I had two walks, about 45 minutes each. The api returns one of them as type 7 ("walking" - right!) and another one as type 0 (in vehicle…
AlexR
  • 240
  • 1
  • 11
5
votes
4 answers

How to get Data source for step count using Google Fit Android API?

I am trying to use Google Fit API to get step count in my app. But I am not getting any data source other than Location. How to get Data Source for step count? Its been more than 4 days I am stuck at this. Kindly help me with this. Thanks. Below is…
Vipul J
  • 6,641
  • 9
  • 46
  • 61
5
votes
3 answers

Getting list of activities(Movements) from google fit api

I am creating application which can use google fit api. I want to get all the activities(Movements) available in the google fit. Here the list of activities in google fit Reference. Edited I know the way how to get the activities which performed…
Rakki s
  • 1,426
  • 1
  • 18
  • 42
4
votes
1 answer

Weekly Steps Retrieved through Google Fit Android API doesn't match with steps displayed in Google Fit Official App

I am trying to retreive user's weekly steps data from google fit API but I am getting different steps count result from official google fit App data. for example : steps retrieved through google fit api for thursday are 5244 while in official google…
4
votes
0 answers

Google Fit - Get and Display only steps from the sensor and not from user input

How do we fetch steps only recorded by the sensor(using the History API) and ignore any user input steps similar to what the Health Mate app does when you link it to Google Fit? I have tried demos and the github demos of Google Fit including the…
Rohan M
  • 171
  • 1
  • 13
4
votes
1 answer

How to get weight data from Google fitness api?

Existing script for step count works perfectly and I can get the data from Google Fit // see step count example at https://developers.google.com/fit/scenarios/read-daily- step-total function getSteps() { var start = new Date(); …
vinaym
  • 467
  • 1
  • 6
  • 18
4
votes
0 answers

Aggregate distances from Google Fit (Rest API 1)

I have been fighting this ridiculous api for a while now. Checked all over SO and couldn't find any useful help for the REST API, looks like Android has it much better at this point. Anyways, I am trying to figure out the total distance traveled…
Andrew McOlash
  • 1,562
  • 1
  • 9
  • 9
4
votes
2 answers

How to reconnect to google fit in android

Hi I've fitness app I have to connect google fit and share my fitness app data to google fit and I've to give option to disconnect. I'm disconnecting by using below code. Fitness.getConfigClient(this,…
1
2
3
17 18