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
4
votes
1 answer

Are Android Google Api's available in China and how to test my app?

I'm using Google's API like Google Maps and Google Fit in my Android application and I'd like to know if they'd work in China. And is there a way to test my app like it was in China? I tried looking for a free china vpn but didn't find…
Kusan
  • 260
  • 1
  • 11
4
votes
1 answer

Google Fit API not receiving data from Bluetooth wrist band (SWR12)

I am coding an Android application that uses the Google Fit API to connect to a bluetooth wrist band with the goal of collecting the heart rate information from the sensor. Here are the functions that I am using: In the app main activity:…
MadProgrammer
  • 423
  • 1
  • 5
  • 17
4
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…
user6284414
4
votes
2 answers

Google Fit API - No Callback Response

I am trying to integrate Sensors API from Google Fit APIs. I am building the google client but there is no callback on any status. Here is my code: private void buildFitnessClient() { if (mClient == null && checkPermissions()) { …
Harshil Pansare
  • 1,117
  • 1
  • 13
  • 37
4
votes
1 answer

Android Fitness API not reading data from wearable sensors

I have been reading about Google Fit API, specially the Sensors API (https://developers.google.com/fit/android/sensors), which says : The Sensors API provides access to raw sensor data streams from sensors available on the Android device and from…
alvaroblca
  • 193
  • 1
  • 4
  • 8
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
  • 299
  • 3
  • 18
4
votes
3 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,665
  • 8
  • 44
  • 70
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
4
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
4
votes
1 answer

How to retrieve daily running and walking steps from Google Fit API

It is probably a newbie question but I have lost a one day to figure out w/o success. I'm using Google Fit API into my Android app and I need to show some of its data like running and walking daily steps. I have managed to show data but in time unit…
MladenB
  • 71
  • 2
  • 7
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
  • 4,319
  • 11
  • 52
  • 100
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
  • 966
  • 2
  • 14
  • 27
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
  • 7,548
  • 7
  • 50
  • 72
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
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
  • 3,522
  • 7
  • 45
  • 89
1 2
3
17 18