google-fit

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

Why is my wearable not listed as DataSource in Google Fit API?

一曲冷凌霜 提交于 2019-12-08 17:02:02
问题 I'm trying to access the heart rate monitor of a Samsung Gear Live watch. The watch is paired with a 4.4.4 handset and works correctly. I'm following the official BasicSensorsApi sample. I can successfully connect to Google Play Services with the following scope: addScope(new Scope(Scopes.FITNESS_LOCATION_READ_WRITE)) .addScope(new Scope(Scopes.FITNESS_ACTIVITY_READ_WRITE)) .addScope(new Scope(Scopes.FITNESS_BODY_READ_WRITE)) But then, when I want to list all available heart rate monitors, I

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)

Google fit API: How to get a map of the route taken during the activity?

蹲街弑〆低调 提交于 2019-12-08 05:57:35
问题 I'm using Google Fit API to develop a fitness app. Take a look at this picture of a google fit recorded session on the Google fit app: here I would like to know if it's possible to get the map displayed at the top of the screen. In fact, I know how to call the History API to get sessions but I can't figure out how to get the map displaying the route taken during the activity by the user. I found this possible duplicate topic (unanswered): Google fit api: get distance/calories/speed when

Multiple GoogleApiClient not firing connect()

痞子三分冷 提交于 2019-12-08 05:22:23
问题 TL;DR; GoogleFit Api client does not connect if is signed in with Google+ So... I'm facing a problem when using GoogleFit and Google+ api together. I am using Google+ to sign in a user and using GoogleFit to retrieve fitness. Besides Google+ I have several other login options such as Facebook and Twitter. My problem is that if a user is signed in with Google+ the user can no longer connect to the Google Fit client. Basically when the button to connect to GoogleFit is pressed nothing happens.

Get Heart Rate from Android Wear using Google fit

断了今生、忘了曾经 提交于 2019-12-08 03:28:28
问题 I'm developing an app for Android (only for smartphone, not for wear) and I want to get the heart rate using googleApiClient (Google Fit) from smartwatch (Huawei Watch f.e.). I tried using Sensor API but wear is not listed as DataSource in Google Fit API . REQUEST_INTERVAL = 5; Fitness.SensorsApi.findDataSources(client, new DataSourcesRequest.Builder() .setDataTypes(DataType.TYPE_LOCATION_SAMPLE, DataType.TYPE_STEP_COUNT_CUMULATIVE, DataType.TYPE_DISTANCE_DELTA, DataType.TYPE_HEART_RATE_BPM)

How to get Heart Rate values from Google Fit History?

假装没事ソ 提交于 2019-12-07 03:29:28
I need to get all the heart rate measurements, and not the minimum, maximum and average, which is what I have been able to get. This is the code I use for reading from my java class. Thank you! private void readDataFitnessHistory() { // Setting a start and end date using a range of 1 week before this moment. Calendar cal = Calendar.getInstance(); Date now = new Date(); cal.setTime(now); long endTime = cal.getTimeInMillis(); cal.add(Calendar.WEEK_OF_YEAR, -1); long startTime = cal.getTimeInMillis(); java.text.DateFormat dateFormat = getDateInstance(); Log.d(TAG, "Range Start: " + dateFormat