You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| res | 2 years ago | |
| src/com/android/healthconnect/testapps/toolbox | 2 years ago | |
| tests | 2 years ago | |
| Android.bp | 2 years ago | |
| AndroidManifest.xml | 2 years ago | |
| OWNERS | 2 years ago | |
| README.md | 2 years ago | |
| build.gradle | 2 years ago | |
| gradle.properties | 2 years ago | |
| settings.gradle | 2 years ago | |
README.md
Setup
Build and run test the app using the following command
m HealthConnectToolbox &&
adb install $OUT/system/app/HealthConnectToolbox/HealthConnectToolbox.apk
Workflows
Requesting Permissions
- Click on Request Permissions on Home Screen
- It will open the Request Permissions page on Health Connect showing toggles for all the permissions.
- Allow/Disallow the permissions as per the use case.
Insert Data
- Click Insert Data on Home Screen
- Select the Data Category.
- Select the Data Type.
- There are two types of Records:
- Interval Record - These records take place over an interval of time therefore they have a start time and an end time. They generate a single value or a range of values at the end of the whole interval. For example Elevation Gained, record contains a start time, an end time and the total elevation gained in that time period. To insert such a record, users can enter a start time, end time and the recorded values for the given record type.
- Instantaneous Record - Contrary to the previous records, these records are recorded at a given instant and not over a range of time. They can be inserted similar to an interval record, just not with a start and end time, instead with a single time stamp.
- On confirming insert of data, users will be given the inserted record's UUID. Save this UUID to update this data later.
Update Data
- Updating data will follow the same workflow as insert.
- Users can goto the page to insert data, enter the updated values and click Update Data.
- Users will be required to enter the UUID of the record they want to update.