All Projects → HMS-Core → hms-health-demo-kotlin

HMS-Core / hms-health-demo-kotlin

Licence: Apache-2.0 license
HMS Health demo code provides demo programs for your reference or usage. Developers can access the Huawei Health Platform and obtain sports & health data by integrating HUAWEI Health.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to hms-health-demo-kotlin

hms-health-demo-java
HMS Health demo code provides demo programs for your reference or usage. Developers can access the Huawei Health Platform and obtain sports & health data by integrating HUAWEI Health.
Stars: ✭ 37 (+76.19%)
Mutual labels:  sports, fitness, health, health-data, huawei, hms
Hitrava
Convert your Huawei Health sport activities and import them in Strava.
Stars: ✭ 156 (+642.86%)
Mutual labels:  sports, fitness, health
Health Blockchain
A blockchain for fitness data demo
Stars: ✭ 31 (+47.62%)
Mutual labels:  fitness, health
Tapiriik
tapiriik keeps your fitness in sync
Stars: ✭ 1,604 (+7538.1%)
Mutual labels:  fitness, health
Choochoo
Training Diary
Stars: ✭ 186 (+785.71%)
Mutual labels:  sports, fitness
humanapi
The easiest way to integrate health data from anywhere - https://www.humanapi.co
Stars: ✭ 21 (+0%)
Mutual labels:  health, health-data
rn-fitness-tracker
React Native module to interact with Google Fit and Apple HealthKit.
Stars: ✭ 58 (+176.19%)
Mutual labels:  fitness, health
hms-toolkit-convertor
Convertor is a code conversion tool supporting Java and Kotlin projects. It helps developers to automatically convert GMS APIs called by apps into corresponding HMS APIs, implementing quick conversion and HMS integration.
Stars: ✭ 29 (+38.1%)
Mutual labels:  huawei, hms
hms-push-serverdemo-java
Java sample code encapsulates APIs of the HUAWEI Push Kit server. It provides many sample programs for your reference or usage.
Stars: ✭ 39 (+85.71%)
Mutual labels:  huawei, hms
hms-audio-editor-demo
HUAWEI Audio Kit provides a wide range of audio editing capabilities, including auido import/export/editing/extracting and format conversion. This sample code describes how to integrate the Audio Editor Kit SDK.
Stars: ✭ 24 (+14.29%)
Mutual labels:  huawei, hms
hms-push-serverdemo-php
PHP sample code encapsulates APIs of the HUAWEI Push Kit server.It provides many sample PHP programs about quick access to HUAWEI Push Kit for your reference or usage.
Stars: ✭ 21 (+0%)
Mutual labels:  huawei, hms
hms-image-vision-java
This sample code is to guide the developer how to integrate the Image Vision Sub-service of the Image Kit, calling the image filter function. This sub-service provides 24 unique filter effects to enhance the artistic conception and artistic sense of the images.
Stars: ✭ 22 (+4.76%)
Mutual labels:  huawei, hms
from-gms-to-hms
Complete guide to adding support for Huawei's mobile services and distribution platform into your apps that are already published on Google Play.
Stars: ✭ 30 (+42.86%)
Mutual labels:  huawei, hms
react-native-health
A React Native package to interact with Apple HealthKit
Stars: ✭ 348 (+1557.14%)
Mutual labels:  fitness, health
hms-ecommerce-demo
Build a shopping app by HMS Core kits which shows how to use the HMS Core solution in E-Commerce industry.
Stars: ✭ 70 (+233.33%)
Mutual labels:  huawei, hms
hms-ads-demo-kotlin
HUAWEI Ads Kit Sample code in kotlin version, which provides the banner, native, rewarded, roll, interstitial and splash ad formats for integration
Stars: ✭ 16 (-23.81%)
Mutual labels:  huawei, hms
hms-scene-demo
HMS Scene kit demo provides an example of integrating HUAWEI Scene Kit with an app. A 3D graphics rendering engine performs more with less. User-friendly rendering APIs for games, AR & VR apps, and other apps bring your users a stunning visual experience.
Stars: ✭ 18 (-14.29%)
Mutual labels:  huawei, hms
hms-scene-RTcore-demo
This demo provides examples of how to use RTCore APIs, including using them to create reflection effects and draw triangles.
Stars: ✭ 13 (-38.1%)
Mutual labels:  huawei, hms
hms-audio-demo
HMS audio android sample code encapsulates APIs of the HUAWEI Audio Kit, which focuses on audio playback, audio effects and audio data.
Stars: ✭ 20 (-4.76%)
Mutual labels:  huawei, hms
hms-FIDO-demo-java
HMS FIDO demo, including fido2 demo, bioauthn demo and bioauthn-androidx demo.
Stars: ✭ 17 (-19.05%)
Mutual labels:  huawei, hms

HMS Health Kit Demo for kotlin

English | 中文

Table of Contents

Introduction

HUAWEI Health is an open service for sports & health capabilities provided by Huawei. Developers can access the Huawei Health Platform and obtain sports & health data by integrating HUAWEI Health.
Health demo code encapsulates APIs of the HUAWEI Health Kit. It provides demo programs for your reference or usage.

The following describes the functions of Health Kit:

  1. Login and Authorization
    This function applies to login the account and enable the authorization.
    Android APIs code location: \app\src\main\java\com\huawei\demo\health\auth\HealthKitAuthActivity.kt

  2. Cancel Scope
    This function applies to cancel account authorization.
    Android APIs code location: \app\src\main\java\com\huawei\demo\health\auth\HealthKitMainActivity.kt

  3. Operate health and sport data
    The function has ability to add/delete/update/query the health and sport data.
    Code location: \app\src\main\java\com\huawei\demo\health\HealthKitDataControllerActivity.kt

  4. Auto-record the step count
    This function can enable and disable the automatically record method for the step count.
    Code location: \app\src\main\java\com\huawei\demo\health\HealthKitAutoRecorderControllerActivity.kt

  5. Operate Activity Record
    This function can create and manage a single sport or activity.
    Code location: \app\src\main\java\com\huawei\demo\health\HealthKitActivityRecordControllerActivity.kt

  6. Operate DataType and Records
    This function can add/read DataType and cancel All Records.
    Code location: \app\src\main\java\com\huawei\demo\health\HealthKitSettingControllerActivity.kt

  7. Operate Health Record
    This function can add/read/update a health record. Currently, the data types of the tachycardia bradycardia are supported.
    Code location: \app\src\main\java\com\huawei\demo\health\HealthKitHealthRecordControllerActivity.kt

Getting Started

Before using Health demo code, check whether the IDE environment has been installed.

  1. Decompress the demo code package.
  2. Copy the Health package into the IDE directory and import it into the IDE Tool.
  3. You should also generate a signing certificate fingerprint and add the certificate file to the project, and add configuration to build.gradle. See (https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides-V5/signing-fingerprint-0000001059050363-V5)
  4. Press Sync Project with Gradle Files to ensure the development environment builds completed.

To use functions provided by packages in examples, you need to set parameters as following:

  1. HuaweiAccount: Health need verify the user's permission to operate user's health data
  2. HMS SDK maven Address:
  3. Compile dependencies: Add compile dependencies in model's build.gradle : implementation 'com.huawei.hms:health:{version}'
  4. AppId info: In the application AndroidManifest.xml, add the appId information generated by the Developer Alliance when creating the application.

Supported Environments

  • Android Studio 3.0 or later.
  • Java SDK 1.8 or later.
  • A phone running a version later than Android 6.0 (API level: 23) or HarmonyOS. HMS Core (APK) 4.2.0.300 or later has been installed on the phone. To read data from the Health app, HMS Core (APK) 5.0.4.300 or later should be installed and also HUAWEI Health app of version 11.0.0.512 or later has been installed.

Result

Question or Issues

If you want to evaluate more about HMS Core, r/HMSCore on Reddit is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.

If you have questions about how to use HMS samples, try the following options:

  • Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
  • Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.

If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.

License

Health kit demo is licensed under the Apache License, version 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].