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

249 questions
4
votes
0 answers

How to calculate distance using google fit api for android?

How do I calculate the distance covered by the user using the google fit API?
Ramya Ramesh
  • 279
  • 3
  • 16
4
votes
0 answers

Google Fit API : Get distance/calories/speed when tracking running/biking?

I'm developing a fitness app for Android devices to track activities like running or bikings and discovered that Google Fit API can help me a lot doing it. But when I started playing with the Google samples from GitHub, I found a few problems in my…
lukasged
  • 198
  • 1
  • 11
3
votes
0 answers

Read Google Fit automatically generated activities

I'm struggling getting this to work as expected. I need to enumerate all the activities I see in Google Fit app (e.g auto "morning walk" or manual added running). I've used the following query: DataReadRequest readRequest = new…
Jumpa
  • 3,731
  • 9
  • 41
  • 86
3
votes
1 answer

How do I get the steps from Google Fit API?

Pardon noobiness, I am completely new to Android, and Google APIs. I have the following code that connects to GoogleFit. I also have an API key and Oauth. Where/how do i use API key and Oauth? Lots of guides on how to obtain them but zero info on…
Duxa
  • 856
  • 2
  • 12
  • 24
3
votes
1 answer

Getting sleep data from the Google fit API

I've been trying for the last few days to get Sleep information from the google fit API. I've managed to get data from the history API and the session API for the time period, but the activity list doesn't seem to include any sleep data. I've been…
Andrew
  • 6,122
  • 7
  • 42
  • 64
3
votes
2 answers

task.getResult() returns false while unregistering an OnDataPointListener

/** * Register fitness listeners for all the required data types */ private void registerFitnessListeners() { mStepCountListener = new OnDataPointListener() { @Override public void…
3
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,…
3
votes
0 answers

Why deleteData of google fit history api not working?

This code delete history in today: val cal = Calendar.getInstance() cal.time = Date() val endTime = cal.timeInMillis cal.add(Calendar.DAY_OF_YEAR, -1) val startTime = cal.timeInMillis val request = DataDeleteRequest.Builder() …
D T
  • 2,530
  • 7
  • 30
  • 66
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
  • 312
  • 2
  • 14
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

Submit weight information / distance through the Google Fit REST API

I've been building a fairly simple app for a few weeks now, that pushes activity from my Fitbit Flex tracker to Google Fit. It's all very simple: it has created data sources, and uses those to push the last hour's calorie count, step count and…
James Cole
  • 66
  • 3
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
2 answers

Converting Nanoseconds to Datetime

I'm having a little trouble converting nanoseconds to DateTime so i can use the Google Fit API (https://developers.google.com/fit/rest/v1/reference/users/dataSources/datasets/get) Dataset identifier that is a composite of the minimum data point…
Luis
  • 2,500
  • 7
  • 38
  • 69
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
  • 538
  • 1
  • 8
  • 24
3
votes
5 answers

Calories expenditure using google fit api

I am working on app fitness app , for that I used google fit api . Till now I am successful in fetching steps count , distance but I am unable to get calorie expenditure . Thanks in Advance
1 2
3
16 17