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

Google-Fit API Client does not connect without Google-Fit App installed

I know the documentation (https://developers.google.com/fit/overview) states: Note: The Google Fit app uses the Google Fit platform, which is included in Google Play services. Your fitness or wellness app can use the Google Fit platform without…
Georg
  • 3,664
  • 3
  • 34
  • 75
2
votes
0 answers

Google Fit DataUpdateListener callback not called

I'm trying to follow this guide to add a DataUpdateListener to listen for DataType.TYPE_WEIGHT events like so: PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, new Intent(this, FitnessStoreUpdatesReceiver.class),…
Colin White
  • 1,041
  • 11
  • 22
2
votes
2 answers

Get current day's steps during datapointListener google Fit

Using the following code, I get the cumulative steps since I started recording the values. But I would like to show only the current day's steps instead of cumulative. @Override public void onConnected(@Nullable Bundle bundle) { …
suku
  • 10,507
  • 16
  • 75
  • 120
2
votes
1 answer

GoogleApiClient not connecting while using google fit

I am trying to get the data for number of steps walked using google fit. I am implementing the code from this tutorial. I am being asked for the account from which I want to connect google fit. After I select the account, it is not connecting. After…
suku
  • 10,507
  • 16
  • 75
  • 120
2
votes
1 answer

Not getting live step counter updates from Google Fit

I want to check whether someone is walking using the Google Fit API by checking whether their step count delta is > 0. It seems simpler than using the History API to get daily step counts and figuring out whether it increased from the previous…
2
votes
0 answers

Google Fit REST API Adding Weight data that is visible from default web dashboard

I've been able to retrieve data-sets used by the Google Fit web dashboard via the REST API but any attempts to add new Data Points fails with the below error. I assume this is by design. However, is it possible to create a data-set and have it…
kfowlks
  • 21
  • 1
2
votes
1 answer

Use Google Fit API to read Sensor data without an internet connection (offline)

I'd like to use the Google Fit Sensors API to read Sensor data from an Android device. However, I don't want to require that the user have an internet connection to enable it. From my testing, it appears that any time you want to do anything with…
2
votes
0 answers

Can't get calories from google fit HistoryApi

I use HistoryApi to get calories expended,but I can't get any data. My request code like this : private DataReadRequest queryFitnessData() { Calendar cal = Calendar.getInstance(); Date now = new Date(); cal.setTime(now); long…
Shang
  • 21
  • 2
2
votes
1 answer

Google Fit Custom Data Type

I am creating one Google Fit compatible App. My objective is to store Google Fit data using HistoryApi, and provide kind of Back Up- Restore functionality to user. If user buys new Android devices then he/she should be able to BackUp(sync) old data…
2
votes
1 answer

Google Fit API history limit?

So I'm trying to read the google fit history using the android API, but I'm coming across an annoying limitation. I seem to only be able to read the past week or so's worth of history, even though there is vastly more data (according to the google…
JaySee
  • 351
  • 3
  • 14
2
votes
4 answers

Google Fit History API - incorrect values for steps

I'm trying to get the walked steps from today. Therefor I've found 2 solutions. 1) private void getStepsToday() { Calendar cal = Calendar.getInstance(); Date now = new Date(); cal.setTime(now); long endTime = cal.getTimeInMillis(); …
julianemue
  • 41
  • 1
  • 6
2
votes
1 answer

Android - Google Fit - Get user's speed

I'm building an app which needs to get the user's current speed using Google Fit's Android API. The API finds the DataType.TYPE_SPEED without any problem, using the findDataSources method, but then the speed value never gets returned. My code is as…
Ernestina Juan
  • 957
  • 1
  • 9
  • 24
2
votes
0 answers

Cannot access Workout Exercises on Google Fitness API

Using the tutorial (https://developers.google.com/fit/android/get-started), I was able to use the Fitness API to retrieve basic data such as steps. However, I have been unable to retrieve any DataSource related to DataType.TYPE_WORKOUT_EXERCISE. Any…
2
votes
2 answers

Google fit add activity programmatically

Is possible to add a simple activity for example biking with time distance and calories from my Android application? I can connect to my Google fit account but don't know how to add a simple activity like biking.
user3805317
  • 121
  • 1
  • 1
  • 10
2
votes
0 answers

Google Fit Data without user logged in

I work for a company that develops health care web applications for the health system. I'm wondering if there is a way to allow a user to preauthorize a website to pull data on their behalf. This would allow a physician to view a patient's data from…
wwelles
  • 49
  • 3