[HealthConnect] Google Code Lab (1)

2023. 4. 12. 12:51EXPERIENCE/MOBILE | Android

반응형

What is Health Connect?

Health Connect is a health data platform for Android app developers. It provides a single, consolidated interface for access to users' health & wellness data, and consistent functional behavior across all devices. With Health Connect, users have a secure health & wellness data storage on-device, with full control and transparency over access.

How does Health Connect work?

Health Connect supports more than 50 common health & fitness data types and categories, including: activity, sleep, nutrition, body measurements and vitals like heart rate and blood pressure.

 

 

With user permission, developers can securely read from and write data to Health Connect, using standardized schemas and API behavior. Users will have full control over their privacy settings, with granular controls to see which apps are requesting access to data at any given time. The data in Health Connect is stored on-device and encrypted. Users will have the ability to shut off access or delete data they don't want on their device, and the option to prioritize one data source over another when using multiple apps.

 

Health Connect Architecture

The following is an explanation of Health Connect's key aspects and architectural components:

  • Client app - to integrate with Health Connect, the client app first links then SDK into their health and fitness app. This provides an API surface to interact with the Health Connect API.
  • Software Development Kit - the SDK enables the client app to communicate with the Health Connect APK over IPC.
  • Health Connect APK - this is the APK that implements Health Connect. It contains both its Permissions Management and Data Management components. The Health Connect APK is made available directly on the user's device, making Health Connect device-centric instead of account-centric.
  • Permissions management - Health Connect includes a user interface through which apps request the user's permission to display data. It also provides a list of existing user permissions. This allows users to easily control and manage the access they have granted or denied to various applications.
  • Data management - Health Connect provides a user interface with an overview of recorded data, whether it's a user's step counts, cycling speeds, heart rate, or other supported data types.

What you'll build

In this codelab, you're going to build a simple Health and Fitness app integrated with Health Connect. Your app will:

  • Obtain and check user permissions for data access
  • Write data to Health Connect
  • Read aggregated data from Health Connect

What you'll learn

  • How to setup your environment to support Health Connect integration development
  • How to obtain permissions and execute permission checks
  • How to contribute health & fitness data to the Health Connect platform
  • How to benefit from the on-device data storage
  • How to validate your app with Google provided developer tools

What you'll need

  • Latest stable version of Android Studio
  • Android mobile device with Android SDK version 28 (Pie) or higher

 

 

 

 

 

첫 번째 헬스 커넥트 통합 앱  |  Android Developers

이 Codelab에서는 헬스 커넥트에서 읽기 및 쓰기를 지원하는 건강 및 피트니스 앱을 빌드합니다.

developer.android.com

 

 

첫 번째 헬스 커넥트 통합 앱  |  Android Developers

이 Codelab에서는 헬스 커넥트에서 읽기 및 쓰기를 지원하는 건강 및 피트니스 앱을 빌드합니다.

developer.android.com

 

반응형