Android Health는 폼 팩터 전반에 걸쳐 건강/피트니스 앱을 만들 수 있도록 헬스 커넥트 및 Wear OS의 건강 관리 서비스 API를 제공합니다. 앱 환경에 둘 중 하나 또는 둘 다 사용할 수 있습니다.
이 개발자 센터에는 두 API를 모두 사용하는 방법에 관한 안내가 포함되어 있으며 건강/피트니스 앱을 빌드하는 데 도움이 되는 Android 전반의 추가 리소스를 안내합니다.
헬스 커넥트를 사용하여 기기 내 건강 및 피트니스 데이터 읽기 및 쓰기
헬스 커넥트는 건강/피트니스 앱이 통합 생태계 내에서 동일한 기기 내 데이터를 저장하고 공유할 수 있도록 하는 Android 플랫폼입니다. 또한 사용자가 건강/피트니스 데이터를 읽고 쓸 수 있는 앱을 한곳에서 제어할 수 있습니다.
헬스 커넥트는 사이클링 속도에서 체온에 이르기까지 50가지가 넘는 다양한 데이터 유형 읽기 및 쓰기를 지원합니다. 새 앱을 빌드하는 경우 헬스 커넥트를 사용하는 것이 좋습니다.
Wear OS의 건강 관리 서비스는 Wear OS 기기에서 다양한 센서와 관련 알고리즘의 중개자 역할을 하는 API입니다. 이 API는 배터리 효율적인 방식으로 활동, 운동, 건강과 관련된 고품질 데이터를 앱에 제공합니다. 건강 관리 서비스는 Wear OS 3 이상을 실행하는 모든 기기에서 일관됩니다. 즉, 앱을 한 번만 작성하면 되며 건강 관리 서비스는 기기와 관계없이 앱이 동일하게 실행되도록 합니다.
가까운 시간 데이터 및 이전 데이터 읽기, 활동 기록과 같은 다양한 피트니스 관련 작업을 지원하는 Google 피트니스 Android API에 대해 잘 알고 있을 것입니다. Google 피트니스 Android API는 지원 중단된 것으로 표시되었습니다. 앱에서
Google 피트니스 Android API를 사용하는 경우
이전 가이드를 참조하여
앱의 기능을 유지하기 위한 대안을 알아보세요. Google 피트니스 Android API로 실행할 수 있는 대부분의 작업은 Android Health API로 실행할 수 있습니다. 예를 들어 Google Fit Recording API 대신 모바일의 Recording API를 사용할 수 있습니다.
사용할 API를 계획하려면 다음 데이터 유형 가이드를 참고하여 헬스 커넥트에서 읽을 수 있는 데이터와 건강 관리 서비스를 사용하여 Wear OS 기기에서 읽을 수 있는 데이터를 파악해야 합니다.
가장 완전한 멀티스크린 환경에서는 건강 관리 서비스와 헬스 커넥트를 모두 사용하여 사용자에게 최대의 가치를 제공합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# Get started with health on Android\n\nAndroid Health provides the following APIs to create health and\nfitness apps across form factors: [Health Connect](#health-connect) and\n[Health Services on Wear OS](#health-services). You can use one or both for your\napp experience.\n\nThis developer center includes guidance for using both APIs, and points to\nadditional resources from across Android to help you build health and fitness\napps.\n\n\u003cbr /\u003e\n\nRead and write on-device health and fitness data using Health Connect\n---------------------------------------------------------------------\n\n[Health Connect](/guide/health-and-fitness/health-connect) is an Android\nplatform that allows health and fitness apps to store and share the same\non-device data, within a unified ecosystem. It also offers a single place for\nusers to control which apps can read and write health and fitness data.\nHealth Connect supports reading and writing over 50 different data types,\nfrom cycling speed to body temperature. If you're building a new app, we\nrecommend you use Health Connect.\n\n[Get Started with Health Connect](/guide/health-and-fitness/health-connect)\n\nAccess high-quality sensor data with Health Services on Wear OS\n---------------------------------------------------------------\n\n[Health Services on Wear OS](/training/wearables/health-services)\nis an API that acts as an intermediary to the various sensors and related\nalgorithms on Wear OS devices. The API provides apps with high-quality data\nrelated to activity, exercise, and health, in a battery-efficient way. Health\nServices is consistent across devices running Wear OS 3 or higher, meaning you\nonly need to write your app once, and Health Services takes care of ensuring\nthe app performs the same, regardless of the device.\n\n[Get Started with Health Services](/training/wearables/health-services)\n\nAndroid Health across devices\n-----------------------------\n\n**Health Connect** is only available on Android mobile devices. However, if you\nhave other data sources connected to your mobile app, such as a wearable,\nyou can use your mobile app to facilitate the data transfer from the wearable\nto Health Connect and correspondingly from Health Connect to the wearable.\n| **Note:** Health Connect is not well-suited for providing live data, but rather storing and unifying data across apps and devices.\n\nAt this time, **Health Services** is only available for Wear OS\ndevices running Wear OS 3 or higher. For all other devices, including phones,\nyou should consult the documentation for [`SensorManager`](/reference/android/hardware/SensorManager).\n\n[Companion Device Manager](/guide/topics/connectivity/companion-device-pairing)\nand [Bluetooth connectivity](https://developer.android.com/guide/topics/connectivity/bluetooth)\nare additional options to connect companion devices that don't run Wear OS.\n\nYou might be familiar with the Google Fit Android API, which supports many\nfitness-related actions such as reading near-time and historic data and\nrecording activities. The Google Fit Android API has been\n[marked as deprecated](https://developers.google.com/fit/android). If your app\nuses the Google Fit Android API, consult the\n[migration guide](/guide/health-and-fitness/health-connect-guidelines/migrate/migration-guide)\nto learn about alternatives for maintaining your app's capabilities. Many of the\nactions you can perform with the Google Fit Android API can be done with Android\nHealth APIs. For example, you can use the\n[Recording API on mobile](/health-and-fitness/guides/recording-api) instead of\nthe Google Fit Recording API.\n\nTo plan out which APIs to use, you should consult the following data types\nguides to\nunderstand what data you could potentially read from Health Connect and what\ndata you could use Health Services to read from Wear OS devices:\n\n[Health Connect Data Types](/guide/health-and-fitness/health-connect/data-and-data-types/data-types)\n\n[Health Services Data Types](/reference/kotlin/androidx/health/services/client/data/DataType)\n\nThe most complete multidevice experiences use both Health Services and Health Connect\nto offer the most value for users.\n| **Note:** In order to read a particular data type from Health Connect back to your app, your user must have at least one app on-device that is writing that particular data type. For example, if you want to use heart rate in your mobile app and your app doesn't already measure heart rate, you need to rely on another app writing heart rate values to the Health Connect datastore in order to read heart rate data back."]]