Coaching you to a healthier and more active life

0

Step 5 Connect to the fitness service

Before you can invoke methods from the Google Fit APIs, you must connect to
one or more of the following API clients, which are part of Google Play
services:

For more information on these APIs, see the Android APIs Overview.

When your app requests a connection to the service, it specifies the data
type(s) and access that it needs. Google Fit asks the user to grant permission
to your app to access their fitness data. For more information about scopes and
authorization, see Authorization.

Create the API client as follows:

  1. Create a instance, declaring the Fit API data types and
    access required by your app:

    FitnessOptions fitnessOptions = FitnessOptions.builder()
        .addDataType(DataType.TYPE_STEP_COUNT_DELTA, FitnessOptions.ACCESS_READ)
        .addDataType(DataType.AGGREGATE_STEP_COUNT_DELTA, FitnessOptions.ACCESS_READ)
        .build();
  2. Check if the user has previously granted the necessary data access, and if
    not, initiate the authorization flow:

    if (!GoogleSignIn.hasPermissions(GoogleSignIn.getLastSignedInAccount(this), fitnessOptions)) {
    GoogleSignIn.requestPermissions(
            this, // your activity
            GOOGLE_FIT_PERMISSIONS_REQUEST_CODE,
            GoogleSignIn.getLastSignedInAccount(this),
            fitnessOptions);
    } else {
    accessGoogleFit();
    }
  3. If the authorization flow is required, handle the user’s response:
    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (resultCode == Activity.RESULT_OK) {
        if (requestCode == GOOGLE_FIT_PERMISSIONS_REQUEST_CODE) {
            accessGoogleFit();
        }
    }
    }
  4. After the user has authorized access to the data requested, create the
    desired client (e.g. a to read and/or write historic
    fitness data) for the purposes of your app:

    private void accessGoogleFit() {
    Calendar cal = Calendar.getInstance();
    cal.setTime(new Date());
    long endTime = cal.getTimeInMillis();
    cal.add(Calendar.YEAR, -1);
    long startTime = cal.getTimeInMillis();
    
    

    DataReadRequest readRequest = new DataReadRequest.Builder()
    .aggregate(DataType.TYPE_STEP_COUNT_DELTA, DataType.AGGREGATE_STEP_COUNT_DELTA)
    .setTimeRange(startTime, endTime, TimeUnit.MILLISECONDS)
    .bucketByTime(1, TimeUnit.DAYS)
    .build();

    Fitness.getHistoryClient(this, GoogleSignIn.getLastSignedInAccount(this))
    .readData(readRequest)
    .addOnSuccessListener(new OnSuccessListener() {
    @Override
    public void onSuccess(DataReadResponse dataReadResponse) {
    Log.d(LOG_TAG, “onSuccess()”);
    }
    })
    .addOnFailureListener(new OnFailureListener() {
    @Override
    public void onFailure(@NonNull Exception e) {
    Log.e(LOG_TAG, “onFailure()”, e);
    }
    })
    .addOnCompleteListener(new OnCompleteListener() {
    @Override
    public void onComplete(@NonNull Task task) {
    Log.d(LOG_TAG, “onComplete()”);
    }
    });
    }

Devices compatible with Google Fit

Coaching you to a healthier and more active lifeCoaching you to a healthier and more active life

A number of fitness and health devices are compatible with Google Fit, most of them being Wear OS smartwatches. Google Fit is the default fitness app for Wear OS devices (unless a company includes its own fitness app), so you can expect to use Google Fit if you pick up a Wear OS smartwatch.

Every Wear OS smartwatch is compatible with Google Fit, though the data the app records will depend on which watch you’re using. For instance, Google Fit won’t be able to record heart rate data if you’re using a Wear OS device without a heart rate sensor, such as the older Skagen Falster. If your Wear OS watch doesn’t have a heart rate sensor but you happen to own a standalone heart rate sensor (such as a chest strap or arm band), you can connect that device to Google Fit to see your heart rate data.

Skagen Falster 2 review: The prettiest Wear OS watch has a problem

1 year ago

Other non-Wear OS devices work with Google Fit too, though there are far fewer of them. Notably, the Xiaomi Mi Band 3 and Mi Band 4 work with Google Fit, as well as the Huawei Band 3 Pro. Other Google Fit-compatible devices include the Withings Move and Move ECG, Withings Body Cardio, Body, and Body Plus smart scales, Eufy Smart Scale, Smart Scale C1, Smart Scale P1, and even the old Sony SmartBand. All Polar devices are also compatible with Google Fit.

If you own a Fitbit device and would like your fitness data transferred over to Google Fit, there’s a third-party app for that, but no official way of connecting your accounts from the Fitbit app itself.

Move Minutes and Heart Points

Coaching you to a healthier and more active lifeCoaching you to a healthier and more active life

Google Fit approaches things differently from other fitness apps. You can still check up on common metrics like your heart rate and step count, but Google Fit combines your activity metrics to make them mean something. For instance, you might see that your lunch walk took around 22 minutes to complete, but what does that mean for your overall health? How does it affect you? And what goals do you need to meet to stay healthy?

Google worked with the American Heart Association to create two goals based on the Heart Association’s activity recommendations. The results are Move Minutes and Heart Points.

  • Move Minutes: Move Minutes is another way to say “active time.” You earn Move Minutes for every bit of physical activity you do, including walks, runs, swims, and yoga.
  • Heart Points: Heart Points are earned when you perform activities at a higher pace. You earn one Heart Point per minute of moderately intense exercise, like from a swift walk. You also earn double Heart Points if you’re taking part in more intense activities like a long run.

How to use your fitness tracker to actually get fit – a comprehensive guide

3 years ago

Google’s goal with Move Minutes and Heart Points is to make the results of exercising easier to understand. It’s a different approach to what other fitness apps offer, but that’s not a bad thing. It just means that if you’re already used to tracking your fitness with another app, you may not want to dive right into Google Fit. However, the focus on Move Minutes and Heart Points is a seriously valuable way to go about teaching users how to stay healthy. Like I said — it’s the fitness app for the rest of us.

Whats missing from Google Fit

Coaching you to a healthier and more active lifeCoaching you to a healthier and more active life

Fitbit Community

Google Fit’s strengths lie in its simplicity. Essentially, it’s the app version of a basic activity tracker — it keeps track of your simplest health metrics and not much more.

The main aspect missing from Google Fit is any kind of social platform. Other popular fitness apps, like Fitbit or Strava, put an emphasis on community. Being able to reach out to a community of like-minded people to help you along your fitness journey can be extremely helpful in certain situations. Fitbit’s app, for instance, let’s you join health and fitness groups, post status updates and photos, comment on posts, and ask for advice if you need it. Strava focuses more on activity progression and staying up to date on how your friends are performing. None of that is available in Google Fit.

Related

The app also lacks any training programs. This is certainly an advanced feature that not all fitness apps have, but it’s worth bringing up.

Google Fit also doesn’t display progress over time for certain activities. You can’t click on a running activity and see how you’ve progressed over the previous weeks or months. You can do this with weight, heart rate, Move Minutes, and Heart Points, but not with exercises.

There’s also no food or water logging in Google Fit, though you can keep track of your weight.

Читайте также:  8 полезных гаджетов для твоей тачки

Some of these things would be excusable if there was a Google Fit website that gave users more options and features (some apps push the more advanced features to the web to keep the mobile apps cleaner). Unfortunately, Google shuttered the Google Fit web interface in February 2019, so the app is all you get.

Coaching you to a healthier and more active life

Overall, Google Fit is a solid start to what could one day be a powerful fitness application. For right now, it’s simple, clean, and it’s compatible with a ton of other fitness and health apps. Also, Move Minutes and Heart Points are genuinely useful metrics that will no doubt help people get and stay healthy. Whether Google Fit is the app for you will likely depend on what type of athlete you are and whether or not you’re already invested in another app.

We’ll be sure to continually update this article as more Google Fit features are added. For now, let me know in the comments if you use Google Fit. What do you like about it, and what features do you think it’s missing?

Next: The best Fitbit alternatives: Garmin, Misfit, Samsung, and more

Google Fit полноценный фитнес-трекер в твоем кармане

Возможно ли собрать все данные по физической активности, диете и сну в одном приложении? Да, если у вас установлен Google Fit.

Команда Бодимастер протестировала официальное и бесплатное приложение на Андроид, которое можно скачать . По сути, это агрегатор всей вашей физической активности, который подтягивает данные с приложений по фитнесу и йоге, счетчиков калорий и пульсометров, например, LifeSum, Freeletics, Strava, MyFitnesPal, а также с гаджетов, вроде Android Wear и Xiaomi Mi.

Есть несколько интересных аналогов Google Fit: Mi Fit, Nokia Health Mate, Fitbit, однако приложение от Гугл является самым популярным, так как работает с более прикладными данными, вроде прогулок, пробежек и диет, без учета сложных медицинских показателей. К тому же Google Fit – универсальный продукт, который ставится на любое Андроид-устройство с версией ОС не раньше 5.0 Lolipop.

Предварительно ознакомиться с основными возможностями приложения, которое мы изучили с помощью смартфона , вы можете в нашем видео:

Давайте пошагово рассмотрим, как работать с приложением.

Step 2 Get Google Play services

Google Fit is available on Android devices with
Google Play services 7.0 or
higher. Devices running Android 2.3 or higher that have the Google Play Store
app automatically receive updates to Google Play services.

To check which version of Google Play services is installed on your device, go
to Settings > Apps > Google Play services.

Ensure that you have the latest client library for Google Play services on your
development host:

  1. Open the Android SDK Manager.
  2. Under SDK Tools, find Google Play services and Google Repository.
  3. If the status for these packages is different than Installed, select them
    both and click Install Packages.

Полный гид по Google Fit всё, что нужно знать о новой фитнес-платформе от Google

Фитнес-платформа Google, впервые представленная на Android Wear (операционная система для часов) ранее в этом году, сейчас доступна онлайн и для устройств на версии Android 4.0 и выше. В этом мини-руководстве от CNET вы найдёте всё, что нужно знать о новом приложении Google Fit.

Что это?

Фитнес-сервис Google Fit – своеобразный ответ приложению Health от Apple. Сервис использует датчики, встроенные в устройство для того, чтобы отслеживать вашу активность: прогулки, езду на велосипеде и бег. Также, вы можете использовать приложение для того, чтобы устанавливать фитнес цели и следить за прогрессом в похудении в течение последнего дня, недели, месяца. Сейчас Google Fit можно бесплатно загрузить на Play store. Сначала Google Fit был на Android Wear, но уже сейчас доступен на сайте Google.

Начнём

На самом деле, всё довольно просто. После того, как вы загрузите приложение на мобильное устройство, следует согласиться с Правилами пользования Google, нажать Дальше и предоставить Google доступ к информации о вашей активности и местонахождении. Благодаря данным по дислокации вы можете увидеть прогресс за прошедший день, а также места, где вы занимались. Например, автор обзора узнал, что сделал 2 598 шагов и примерно в 08:48 гулял по Нью-Йорку, США.

Чтобы установить приложение на компьютер зайдите на сайт, выберите ваш Google-аккаунт и согласитесь с Правилами пользования.

Установить цели

Главная цель Google – установить ежедневный один час активности. Но этого может быть много или наоборот, недостаточно, в зависимости от вашего уровня физической подготовки.

Настроить цель можно через кнопку Меню (значок с тремя вертикальными точками в верхнем правом углу экрана): выберите Настройки и Ежедневные цели. Измените вашу ежедневную активность и количество шагов, которое хотите пройти в течение дня. Доктора рекомендуют взрослым делать, как минимум, 10 тысяч шагов в день.

Сделать это личным

После того, как вы настроили аккаунт и изменили ежедневные цели – самое время задуматься о приватности. Снова нажмите на кнопку Меню и выберите Настройки. Прокрутите вниз до полей, в которые необходимо внести рост и вес; если вы будете прокручивать дальше – найдёте опции для переключения между различными единицами измерения. Там же найдёте опцию для ежедневного измерения веса, очень полезную при отслеживании того, сколько вы потеряли за конкретный промежуток времени.

Приложение Google Fit будет периодически высылать напоминания и обновления целей. Вам не очень-то и нужны эти напоминания? В меню настроек есть опция, позволяющая отключить и уведомления, и звуки.

Добавить занятие

Не каждому по душе выполнять упражнения вместе с телефоном. Если вы тоже не в восторге от этой идеи, выберите в Меню Добавить занятие, чтобы добавить тренировки, которые вы прошли без своего маленького друга (телефона). Можно выбирать между ходьбой, бегом, ездой на велосипеде или другими видами активности и добавлять время, которое потратили на конкретное занятие. Google добавит активное время на ваш профайл, а для ходьбы или бега, также, подсчитает количество шагов.

Просмотрите данные

Coaching you to a healthier and more active life

Вы можете просмотреть данные за прошедший день, неделю или месяц как в самом приложении Google Fit, так и непосредственно на сайте. На главной странице в мобильном приложении прокрутите вниз и нажмите Просмотреть график. Всплывающее вверху слева меню позволяет переключаться между днями, неделями и месяцами, в то время как всплывающее в правом верхнем углу меню поможет быстро разобраться со временем активности и шагами. Под основным графиком вы сможете добавить дополнительные для веса и ЧСС (частоты сердечных сокращений).

На вебсайте Google Fit можно увидеть графики, кликнув на круг, отображающий ваши активные минуты и шаги.

Связь со сторонними приложениями

Фитнес-устройства и приложения от Strava, Withings, Runtastic, Runkeeper и Noom Coach могут работать вместе с Google Fit, показывая все полученные данные в одном месте. Пока что приложения партнёров Google ещё не обновились для включения функции Google Fit, но поговаривают, что это произойдёт в ближайшем будущем.

Удалите данные

Не нравится Google Fit? Или вам просто некомфортно от самой мысли о том, что Google так много знает о вас? Нажмите кнопку Меню, выберите Настройки, затем – Удалить историю. Приложение удалит все ваши Google Fit данные, что, к сожалению, иногда может привести к некорректной работе связанных приложений.

Вы можете отнестись к новому приложению скептически, как и к уже существующим программам для фитнеса. Ведь растущая зависимость от смартфона порой раздражает. Но нельзя игнорировать то, что контроль активности с помощью новых технологий – «горячий» тренд уже не первый сезон.

Как работает Google Fit

Для начала вам нужно установить приложение на смартфон имеющий версию Android 4.0 и выше.

Coaching you to a healthier and more active life

Ознакомьтесь с фитнес-сервисом на вводных картинках рассказывающих о назначении приложения, пролистав далее вы можете уже приступать к ходьбе, бегу или вело прогулке. Настраивать здесь ничего не нужно приложение уже активно.

Читайте также:  Обзор DJI Inspire 2

Coaching you to a healthier and more active life

Следующим шагом будет настройка фитнесс-сервиса. Создавая задания, вы можете настроить цели, например продолжительность занятия или задать определенное количество шагов.

Coaching you to a healthier and more active life

На экране будет отображаться круг активности, где в центе вы уведете показатели времени общее количество и остаток до выполнения заданной нормы. Свайпом можно перейти на показатели количества пройденных и оставшихся шагов.

Coaching you to a healthier and more active life

В зависимости от того какой активностью вы занимались будет закрашиваться контур круга. Например ходьба оранжевым цветом, бег — бардовым, а вело езда будет отображаться бирюзовым, все эти активности приложение Fit анализирует и переключает самостоятельно. Под кругом находится информация о продолжительности активности.

Coaching you to a healthier and more active life

Смотреть свою статистику и анализировать ее можно в приложении смартфона, на часах с Android Wear или на компьютере зайдя на станицу fit.google.com под своим аккаунтом. Результаты тренировок можно просматривать за разные отрезки времени: день, неделя или месяц. Информацию в отчете подается в виде графиков и диаграмм что улучшает восприятие и облегчает анализ своих результатов.

Показатели веса и пульса не активны, хотя если вы подключите носимое устройство с пульсометром то будите получать информацию о пульсе. Вес придется вносить в ручную.

Конечно тут стоит отметить, что не все так идеально и правильно срабатывает, но если учесть что приложение совсем молодое, и пройдет не один апдейт и обновление чтобы все идеально работало и шаги превратились в метры и километры и так далее …

Ну а перспективы развития данного сервиса огромные, все больше внимания сейчас уделяют фитнесу и здоровому образу жизни производители электроники, не случайно ведь сейчас набирают популярность носимые устройства.

Custom data types

Google Fit enables you to create custom data types for your application and to use them to store
fitness data. When you create custom data types, ensure that:

  • Google Fit does not already provide a similar data type.
  • The data type name is clear.
  • The data type name accurately represents the underlying data.
  • The prefix of the data type name matches the package name of your application.

Create a custom data type

To create a custom data type, create a new data source specifying the name of the data type
and its field definitions.

For example, define a custom data type in a data source as follows:

{
  "dataStreamId": "exampleDataSourceId",
  ...
  "dataType": {
    "field": ,
    "name": "com.example.myapp.mycustomtype"
  },
  ...
}

Use a custom data type

To insert fitness data of your custom type, specify the data source you created for your data type
when you create a dataset with new data points. The data points must have the same number of
components and types as those specified by your custom data type.

To read fitness data of your custom data type, specify the data source you created for your data
type when you retrieve data points from the fitness store.

Google Fit profile navigating the app

Coaching you to a healthier and more active lifeCoaching you to a healthier and more active life

Fitness apps can be hit or miss — some are overly packed with features and require a learning curve while others have an intuitive design but not many features. Google Fit falls in the latter category. Depending on what type of user you are, you’ll either think Google Fit is the best thing ever or way too simple for what you need.

Also read: The best fitness apps for Android | The best fitness apps for iOS

Once you tell Google Fit a little about yourself (gender, date of birth, weight, and height), you’ll see a quick walkthrough of the app’s two main activity metrics: Move Minutes and Heart Points (more on these later). After that, you’ll find yourself on the app’s home screen.

There are three main sections of the Google Fit app: Home, Journal, and Profile. A brief description of each can be found below:

  • Home: The Home screen shows an overview of your current day’s activities and health metrics, including Move Minutes and Heart Points, steps taken, calories burned, distance traveled, heart rate data, and weight.
  • Journal: The Journal could also be referred to as a schedule or an agenda. It’s a simple, scrollable list of all your recorded activities, whether that be a short walk or a long swim.
  • Profile: The Profile page is where you’ll adjust your Move Minutes and Heart Points, as well as personal information.

Head back to the Home tab and click on the big profile widget on the top. This will take you to a summary of your daily, weekly, and monthly activity stats in the form of Move Minutes and Heart Points. If you scroll through your history and want more details on your activity stats for that day, click on the day and you’ll find all your recorded activities. From there, you can click on an individual activity to see more minute details like distance, steps, calories, and pace metrics.

There’s also a small floating action button on the bottom-right that lets you manually track a workout or add an activity, weight measurement, or blood pressure reading.

As of version 2.16.22, Google Fit now has a dark mode! If you have an Android phone with an OLED display, dark mode will help save a bit of battery life. Dark mode is found throughout every screen in Google Fit — everywhere you click, you’ll see a dark grey background with bright green and blue accents.

There should be a dark/light mode toggle headed to Google Fit via a server-side switch, but our Pixel 2 XL doesn’t have that option yet. 

Как работает и как пользоваться

Использование данного приложения можно назвать очень простым. После загрузки программы на свой мобильный аппарат нужно выразить своё согласие с правилами его использования, которые опубликованы на Google, потом нажать на «Дальше» и указать для Google доступ к данным о Ваших местонахождении и активности. Информация о дислокации позволит Вам отследить прогресс, достигнутый в течение прошедшего дня, и те места, в которых прошли Ваши занятия. К примеру, можно узнать, что Вы совершили 1 734 шага и в 10:17 прогуливались по Самаре.

Для установки приложения на ПК следует зайти на сайт, выбрать свой аккаунт Google и согласиться с правилами использования.

Что необходимо для начала работы?

Вначале нужно скачать программу Гугл Фит, выполнить её установку на своё устройство. Нужно также иметь аккаунт в Google. Там следует заполнить свой профиль с указанием пола, роста, массы. Эта информация должна быть достоверной, поскольку программа будет её использовать для расчётов. При вводе неправды в результате также будет получена недостоверная информация. Тут есть возможность задания целей своей активности. Есть такие варианты:

  • число сделанных шагов;
  • время, которое было потрачено на активность;
  • дистанция, пройденная, преодолённая бегом либо на велосипеде;
  • уничтоженные калории.

Вы носите свой девайс, в это время программа осуществляет отслеживание его передвижения. Наиболее приятный момент заключается в отсутствии необходимости в каких-либо дополнительных настройках. Нужно только сделать всё вышеперечисленное, чтобы программа начала работать.

Прогресс реализации заданных целей отображает монитор мобильного устройства. Можно рассмотреть, например, преодолённую дистанцию. На дисплее возникает кольцо, медленно изменяющее свой цвет в ходе приближения к необходимому результату. Отрезки этого кольца могут иметь разные цвета в зависимости от способа перемещения:

  • при ходьбе — оранжевый;
  • при беге — красный;
  • при движении на велосипеде — бирюзовый.

Установка целей

Основной целью Google является установление 1 часа физической активности ежедневно. Однако данная норма может оказаться чрезмерной либо, напротив, недостаточной, с учётом конкретной физической формы.

Настройка цели возможна с помощью кнопки «Меню» (имеющей вид значка, у которого 3 вертикальные точки, сверху справа на мониторе): нужно выбрать «Настройки», затем — «Ежедневные цели». Следует задать свою активность на каждый день, а также число шагов, которое планируется преодолеть на протяжении дня. Врачи советуют для взрослых не менее 10 000 шагов ежедневно.

Читайте также:  Обзор умных часов Xiaomi amazfit verge

Личные настройки

После настроек аккаунта и определения целей на каждый день можно подумать о приватности. Следует вновь нажать «Меню», затем выбрав «Настройки». Потом прокрутить книзу до тех полей, куда нужно указать рост и массу; при дальнейшем прокручивании можно найти опции, позволяющие переключать разные единицы измерения между собой. Там также можно найти ежедневное определение массы, что чрезвычайно полезно для мониторинга потерь своего веса в течение конкретного времени.

Программа Google Fit время от времени отправляет напоминания, а также обновления заданных целей. Если Вам это не слишком необходимо, можно в меню воспользоваться опцией отключения уведомлений, а также звуков.

Добавление занятия

Не всем нравится выполнение упражнений со смартфоном. Если и Вам это также не по нраву, можно выбрать в «Меню» функцию «Добавить занятие», позволяющую добавлять тренировки, ранее пройденные при отсутствии смартфона. Есть возможность выбора между такими способами передвижения, как ходьба, бег, езда на велосипеде и другие виды активности, добавляя время, потраченное на определённое занятие. Гугл внесёт активное время в профайл, при этом для бега и ходьбы будет ещё подсчитываться число шагов.

Удаление информации

Если Вас чем-то не устраивает Google Fit либо попросту доставляет дискомфорт одно осознание того, что Гугл слишком много про Вас знает, Вы можете нажать на «Меню», выбрать «Настройки», а потом выбрать «Удалить историю». Программа сотрёт всю Вашу информацию в Гугл Фит. Это, увы, нередко вызывает сбои в работе синхронизированных программ.

Шаг 2. Ставим себе цели

После запуска приложения, оно сразу предложит вам начать путь к здоровому образу жизни. А именно – настроить шагомер, то есть установить себе количество шагов за определенный интервал.

Coaching you to a healthier and more active life

Дополнительно вы можете себе указать столько целей, сколько позволяет вам время и возможности. Приложение предлагает список из почти сотни различных активностей, от зарядки и велосипеда, до танцев и плавания. Делается это так:

  • Нажимаете на кнопку «плюс» в правом нижнем углу
  • Тапаете по кнопке «Добавить цель»
  • Выбираем цель из предложенных по умолчанию, либо выбираем из общего списка
  • Листаем список и назначаем активность.
  • Указываем регулярность выполнения и количество раз.

Впрочем, вам даже необязательно указывать какое-то конкретное упражнение. Вверху общего списка вы можете назначить более общие цели, которые вы будете выполнять с определенной периодичностью.

Coaching you to a healthier and more active life

Например, мы назначили себе ежедневно проходить дистанцию в пять километров, посвящать физическим нагрузкам два часа в день и сжигать 1000 калорий. Дополнительно мы поставили перед собой цель в 10 тысяч шагов и прыжки через скакалку.

Теперь на главном экране с помощью круговых диаграмм будут отображаться все данные по каждой цели.

Постепенно, вы войдете во вкус и начнете задавать себе поле интересные, полезные и увлекательные цели, например, скалолазание, теннис, плавание, медитацию и так далее.

Coaching you to a healthier and more active life

Бодимастер рекомендует!

Испытываете трудности в постановке цели? Не отчаивайтесь! Прочтите нашу статью Как правильно выбрать цель в жизни, которая поможет вам точно определиться со своими сильными и слабыми сторонами, акцентировать внимание на привычках и продумать для себя идеальный день

Public data types

Google Fit defines public data types for instantaneous readings and data types for aggregate data.

Data types for instantaneous readings

The following table lists data types for instantaneous readings:

Data Type Name Description Permission Fields (Format—Unit)
The user’s Move Minutes. Activity duration (—minutes)
Instantaneous sample of the current activity. Activity activity (—enum)
confidence (—percent)
Continuous time interval of a single activity. Activity activity (—enum)
Total calories expended over a time interval. Activity calories (—kcal)
Instantaneous pedaling rate in crank revolutions per minute. Activity rpm (—rpm)
Instantaneous wheel speed. Location rpm (—rpm)
Distance covered since the last reading. Location distance (—meters)
The user’s Heart Points. Activity intensity (—heart points)
Heart rate in beats per minute. Body bpm (—bpm)
The user’s height, in meters. Body height (—meters)
Food item information Nutrition nutrients (—calories/grams/IU)
meal_type (—enum)
food_item (—n/a)
Instantaneous power generated while performing an activity. Activity watts (—watts)
Instantaneous speed over ground. Location speed (—m/s)
Instantaneous cadence in steps per minute. Activity rpm (—steps/min)
Number of new steps since the last reading. Activity steps (—count)
The user’s weight. Body weight (—kg)
A user’s continuous workout routine. Activity exercise (—enum)
repetitions (—count)
resistance type (—enum)
resistance (—kg)
duration (—milliseconds)

Data types for aggregate data

The following table lists data types for aggregate data:

Data Type Name Description Permission Fields (Format—Unit)
Total time and number of segments in a particular activity for a time interval. Activity activity (—enum)
duration (—ms)
num_segments (—count)
Average, maximum, and minimum beats per minute for a time interval. Body average (—bpm)
max (—bpm)
min (—bpm)
User’s nutrition intake during a time interval. Nutrition nutrients (—calories/grams/IU)
meal_type (—enum)
food_item (—n/a)
Average, maximum, and minimum power generated while performing an activity. Activity average (—watts)
max (—watts)
min (—watts)
Average, maximum, and minimum speed over ground over a time interval. Location average (—m/s)
max (—m/s)
min (—m/s)
Average, maximum, and minimum weight over a time interval. Body average (—kg)
max (—kg)
min (—kg)

Using data types with the REST API

The resource includes the data type
(and a list of its fields) for each data source. You can specify one of these data types when
you create data sources, and you can obtain the name of the data type and a list of its fields
when you retrieve a data source from the fitness store.

For example, a data source representation specifies its data type as follows:

{
  "dataStreamId": "exampleDataSourceId",
  ...
  "dataType": {
    "field": ,
    "name": "com.google.step_count.delta"
  },
  ...
}

When using one of the public data types in a data source, the data type name and its field
definitions must match those listed in the tables above.

Exceptions

Whilst any application can write data to a public data type, there are certain
data types which can only be read by the application that wrote the data.

Data Type Name Description Fields (Format—Unit)
The user’s current location. latitude (—degrees)
longitude (—degrees)
accuracy (—meters)
altitude (—meters)
A bounding box for the user’s location over a time interval. low_latitude (—degrees)
low_longitude (—degrees)
high_latitude (—degrees)
high_longitude (—degrees)

Apps compatible with Google Fit

Coaching you to a healthier and more active life

Google Fit is its own app — why would you want to connect it with another fitness app? There are a few reasons.

Let’s say you use a Garmin device for tracking your workouts through an app like Runtastic, but you really love Google Fit’s Move Minutes and Heart Points metrics. If you connect your Google Fit account to Runtastic, your fitness data will automatically transfer over to Google Fit.

You also might want to connect Google Fit to another app if you’re using a Wear OS device. As we’ve already discussed, Google’s fitness app isn’t the most versatile app out there. So, if you want to keep track of your activity in a more powerful app like Strava or Runkeeper, connecting your Google Fit account to a third-party app will do the trick.

What apps are compatible with Google Fit? Check out some of the most popular Google Fit-compatible apps below:

  • Calorie Counter – Asken Diet
  • Lost It!
  • Under Armour Record
  • Workout Trainer
  • Runkeeper
  • Runtastic
  • Nike Run Club
  • Pokémon Go
  • Fitwell
  • Runtastic Results Fitness & Home Workouts
  • Calm
  • MyFitnessPal – Calorie Counter
  • 8fit Workouts & Meal Planner
  • Run with Map My Run
  • Map My Fitness Workout Trainer
  • Walk with Map My Walk
  • Drink Water Reminder
  • BodySpace
  • Sleep As Android
  • Daily Yoga
  • Strava
  • Dreem Coach
  • Polar Flow
  • Mindbody
  • Clue Period Tracker
  • HealthifyMe
  • Moto Body
  • Monitor Your Weight
  • Runtastic PRO
  • Calorie Counter by FatSecret
  • Endomondo
  • Instant Heart Rate
  • Instant Heart Rate Plus
  • Noom
  • Withings Health Mate
  • Map My Ride
  • Seven – 7 Minute Workout
  • Progression Workout Tracker
  • Weight Track Assistant
  • Runtastic Steps
  • PlexFit for Pebble
  • SmartBand Talk SWR30
  • SmartBand 2 SWR12
  • Pedometer
  • Glow: Fertility Calculator
  • Instant – Quantified Self, Track Digital Wellbeing
  • Qardio
  • Freeletics
  • Jefit
  • Lifesum
  • Walgreens
  • Headspace

You can also schedule recurring exercises with Google Fit through Google Calendar. To do so, open Google Calendar, tap the “+” button on the bottom-right corner, then tap Exercise. From there, you can choose which exercises you’d like to schedule (run, walk, yoga, hike, etc.), how often you’d like the exercise to recur, the duration of your exercise, and what time of day you’d like to exercise.

If you live and die by Google Calendar (like me), this is a great way to integrate it into your schedule.

1 Звезда2 Звезды3 Звезды4 Звезды5 Звезд
Загрузка...

Мы будем рады и вашему мнению

Оставить отзыв