google-fit-sdk

Getting list of activities(Movements) from google fit api

筅森魡賤 提交于 2019-11-30 21:54:09
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 by user, But i want complete list of activities which available in the google fit API (Not only the activity which performed by user, need whole list of activities) like the list available in the above link. The Google Fit activities are listed in the FitnessActivities class. You can programmatically get a list of all these fields using:

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

本小妞迷上赌 提交于 2019-11-30 20:34:35
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 them). User's can manually load Walking, Running etc activity, and we want to ignore such activities. We looked into History APIs and Activity Fields, but it seems there is no way to identify whether activities are manually logged or automatically added by other apps OR phone sensors OR wearable devices. Can someone knows a way to get activities which

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

。_饼干妹妹 提交于 2019-11-30 04:46:30
问题 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 them). User's can manually load Walking, Running etc activity, and we want to ignore such activities. We looked into History APIs and Activity Fields, but it seems there is no way to identify whether activities are manually logged or automatically added

Google fit Recording API delay

不羁岁月 提交于 2019-11-29 15:06:30
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 the History API to show it on the screen. What happens is that the count is not correct. There is a delay until you get the correct and updated count. To be more specific no data is being lost. I guess that the Recording API is updating with a specific time interval. I'm also using the Sensors API to show the real count on my Activity when it is

Google Fit authorization bugs (with 5005, 5000, and 5015 errors) on WatchFace, WatchConfig, and companion app

十年热恋 提交于 2019-11-28 14:36:56
I am looking for some fresh ideas on the dreaded 5005 error: "Status code denotes that an unknown error occurred while trying to obtain an OAuth token." when my Watch Face tries to connect a Google API built with various Fitness APIs. This all works in my local testing AND when I download and run my RELEASE (beta) version. However, when my first tester tried it, he gets that error code when trying to connect the API. UPDATE2: I have now tracked down what is going on, so I'm going to list my final working code here and then talk in the answer about what I discovered. There are 3 different

Step count retrieved through Google Fit Api does not match Step count displayed in Google Fit Official App

给你一囗甜甜゛ 提交于 2019-11-27 19:31:07
I have developed an application that needs to display daily steps count. To do this, I used the API available in Google Fit SDK. All seems to be working properly, but the steps count I get does not match to the one displayed in Google Fit Official Application. For example, I get 2308 steps when the Google Fit App display 2367 steps. Is there a reason for this? Does anyone have the same issue? Anyone have a clue? I found the solution. The Fit app does some additional processing on top of the steps. It estimates steps based on the activity when none are recorded. If it can help someone : You

Google Fit authorization bugs (with 5005, 5000, and 5015 errors) on WatchFace, WatchConfig, and companion app

泪湿孤枕 提交于 2019-11-27 08:47:27
问题 I am looking for some fresh ideas on the dreaded 5005 error: "Status code denotes that an unknown error occurred while trying to obtain an OAuth token." when my Watch Face tries to connect a Google API built with various Fitness APIs. This all works in my local testing AND when I download and run my RELEASE (beta) version. However, when my first tester tried it, he gets that error code when trying to connect the API. UPDATE2: I have now tracked down what is going on, so I'm going to list my

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

断了今生、忘了曾经 提交于 2019-11-27 07:51:42
问题 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? 回答1: We can read global data (Cloud) by adding the .enableServerQueries() in DataReadRequest 来源: https://stackoverflow.com/questions/26670836/google-fit-data-is-different-from-device-to-device-with-same-account

Step count retrieved through Google Fit Api does not match Step count displayed in Google Fit Official App

浪尽此生 提交于 2019-11-26 19:54:51
问题 I have developed an application that needs to display daily steps count. To do this, I used the API available in Google Fit SDK. All seems to be working properly, but the steps count I get does not match to the one displayed in Google Fit Official Application. For example, I get 2308 steps when the Google Fit App display 2367 steps. Is there a reason for this? Does anyone have the same issue? Anyone have a clue? 回答1: I found the solution. The Fit app does some additional processing on top of