google-fit-sdk

Submit weight information / distance through the Google Fit REST API

Deadly 提交于 2019-12-10 23:13:45
问题 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 distance to Google Fit. It also pushes my weight, should I log it using the Fitbit app. Every hour, it pushes these three metrics in three different data sets, each with a single data point. For example: from 10:00 to 10:59, 451 steps. This works pretty

Android Fitness API not reading data from wearable sensors

大憨熊 提交于 2019-12-10 18:26:01
问题 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 sensors available in companion devices, such as wearables. Also, watching Google's example video, they says "They could be sensors available on the Android Device or sensors available on companion devices. For example, for steps, Fit will use the

Access Android Wear Fit Data

試著忘記壹切 提交于 2019-12-09 05:40:54
问题 I'm developing an app for Android Wear on Samsung Gear Live (Google I/O Edition) where it will need access heart rate and steps count history data. I know that later this data might be accessible using Google Fit SDK, but is it possible to read that data without using that SDK right now? I would prefer to access this data without ROOTing my G Watch. Here are the screenshots of the historical data that I would like to extract: Steps History data: Heart Rate History Data: UPDATE 10/28/2014

Google Fit SessionsApi not returning all sessions in time range

不打扰是莪最后的温柔 提交于 2019-12-08 15:35:11
问题 Somehow I've run into a dead end with the Google Fit Android SDK. Currently I'm building an application that reads, displays and processes data from Google Fit to give users insights on their workout behavior. My situation is as follows: I used to test on a Google Pixel - everything was fine and I've received all (more than 20) sessions from Google Fit. One week ago, I've switched to a HTC10 - on this device I'm only receiving 4 (!) sessions from Google Fit - same app, same code, same Google

Google Fit Data

我只是一个虾纸丫 提交于 2019-12-08 10:47:24
问题 Hi guys I have a problem using the Google Fit Api. I only receive activity data in specific situations. I'm using the RxFit library (but I had the same behaviour using the default implementation). When I try this on my own phone (Nexus 5X) with my own account it works perfectly fine. If I try a different account on my phone I receive a success response, but no actual activity data. Same goes for other device and other account. And with my own account on the other device it does not work

calories for session - google fit

谁都会走 提交于 2019-12-08 10:42:46
问题 I'm trying to get the burned calories for an inserted google fit session as soon as I've inserted them. Thus, is ther any possibility to calculate the burned calories for a session`? Right now I create my session, insert it to google fit and then it takes at least 5 minutes till the burned calories for the activity are readable from google fit again. Looking forward for your ideas and thanks in advance! Juliane 回答1: Calories for session private class BackgroundFetching extends AsyncTask<Void,

Steps Data receive from History api is not matched with google fit

天涯浪子 提交于 2019-12-08 08:53:26
I want google fit steps count in my application, for that I am using History api, provided by google. I found that steps receive from history api is not matched with google fit even if i used same code provided by google. Below is my code. Calendar cal = Calendar.getInstance(); Date now = new Date(); cal.setTime(now); long endTime = cal.getTimeInMillis(); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); long startTime = cal.getTimeInMillis(); DataSource ESTIMATED_STEP_DELTAS = new DataSource.Builder() .setDataType(DataType.TYPE_STEP_COUNT_DELTA)

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

百般思念 提交于 2019-12-06 02:47:56
问题 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. 回答1: After doing some research to pin down the culprit it was in fact play-services-fitness:7.5.0 that was to blame. By including that in your project ( compile 'com.google.android.gms:play-services-fitness:7.5.0' ) and compiling it will inject the <uses-permission

Not cheatable Google fit step counter

前提是你 提交于 2019-12-05 04:01:56
问题 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 for example the Google Fit app and it will be counted in my app too. This introduces cheating and i do not want this. So i need to have a way to only read "device created" data and not manually added data. Is there a nice way to to this? From the

Calories expenditure using google fit api

ぐ巨炮叔叔 提交于 2019-12-04 13:27:46
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 You need to set the user's weight and height first. The expended calories are calculated using this information. These are the methods that I use to do this. (mClient is a GoogleApiClient instance) public static void saveUserHeight(int heightCentimiters) { // to post data float height = ((float) heightCentimiters) / 100.0f; Calendar cal = Calendar.getInstance(); Date now = new Date(); cal.setTime(now); long