This repository contains a sample to help you get started writing Health Connect apps for Android.
You will need:
- An Android device or emulator running API level 27 or greater
- The Health Connect APK installed on the device or emulator
The Health Connect Toolbox is a companion developer tool to help you test your app's integration. It can read and write data directly to Health Connect, allowing you to test your app's CRUD operations.
You can download the toolbox here.
The first time you open the Health Connect Toolbox app, you're taken to the permission settings under "Apps > Special app access > Display over other apps." This permission allows the Health Connect Toolbox to show an overlay on top of other apps so that you can test reading and writing data without leaving the app you're developing.
This sample uses the Gradle build system. To build this project, use the "gradlew build" command or "File > Open" in Android Studio.
If you've found an error in this sample, please file an issue: https://github.com/android/health-samples
Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING for more details.