Health Connect
Stay organized with collections
Save and categorize content based on your preferences.
Health Connect is an Android platform that allows health and fitness apps to use
the same on-device data, within a unified ecosystem.
For Android developers, it provides an API for reading and writing a user's
on-device health and fitness data. For Android users, it offers a place to
exercise control over which apps have read and or write access to their health
and fitness data.
The Android ecosystem includes a broad range of devices and platforms,
including smartphones, wearables, and numerous health, fitness, and wellness
apps. To accommodate these technologies, Android APIs feature a wide variety of
data types. Accordingly, Android users want to exercise strict and convenient
control over their health and fitness data from a single data repository.
Health Connect meets users' needs in numerous ways:
- It enhances overall knowledge of their health and fitness activities.
- It allows users to gain an overview of how their health and fitness data is
stored and shared.
- It provides quick and convenient access to various privacy controls.
Health Connect features a comprehensive range of data types
that allows users to track all of their health and wellness activities,
across the following key data categories:
- Activity captures any activity that a user does, such as running,
swimming and cycling.
- Body Measurement captures common data related to a user's body, such as
weight, or basal metabolic rate.
- Cycle Tracking captures menstrual cycles and related data points, such
as the binary result of an ovulation test.
- Nutrition captures hydration and nutrition data types, including
optional fields such as calories, sugar intake and magnesium content.
- Sleep captures interval data related to the length and type of a user's
sleep.
- Vitals captures essential information about the user's general health.
It includes everything from blood glucose to body temperature and blood
oxygen saturation.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-04 UTC."],[],[],null,["# Health Connect is an Android platform that allows health and fitness apps to use\nthe same on-device data, within a unified ecosystem.\n\nFor Android developers, it provides an API for reading and writing a user's\non-device health and fitness data. For Android users, it offers a place to\nexercise control over which apps have read and or write access to their health\nand fitness data.\n| **Note:** If your app integrates with Health Connect, before going to production, you need to declare the data types your app reads or writes, and how this data is used. For more information, see [How do I declare access to read or write data types?](/guide/health-and-fitness/health-connect/frequently-asked-questions#declare-access).\n\nThe Android ecosystem includes a broad range of devices and platforms,\nincluding smartphones, wearables, and numerous health, fitness, and wellness\napps. To accommodate these technologies, Android APIs feature a wide variety of\ndata types. Accordingly, Android users want to exercise strict and convenient\ncontrol over their health and fitness data from a **single data repository**.\n\nHealth Connect meets users' needs in numerous ways:\n\n- It enhances overall knowledge of their health and fitness activities.\n- It allows users to gain an overview of how their health and fitness data is stored and shared.\n- It provides quick and convenient access to various privacy controls.\n\nHealth Connect features a [comprehensive range of data types](/reference/kotlin/androidx/health/connect/client/records/package-summary#classes)\nthat allows users to track all of their health and wellness activities,\nacross the following key data categories:\n\n1. **Activity** captures any activity that a user does, such as running, swimming and cycling.\n2. **Body Measurement** captures common data related to a user's body, such as weight, or basal metabolic rate.\n3. **Cycle Tracking** captures menstrual cycles and related data points, such as the binary result of an ovulation test.\n4. **Nutrition** captures hydration and nutrition data types, including optional fields such as calories, sugar intake and magnesium content.\n5. **Sleep** captures interval data related to the length and type of a user's sleep.\n6. **Vitals** captures essential information about the user's general health. It includes everything from blood glucose to body temperature and blood oxygen saturation."]]