1## Setup
2
3Build and run test the app using the following command
4
5```
6m HealthConnectToolbox &&
7adb install $OUT/system/app/HealthConnectToolbox/HealthConnectToolbox.apk
8```
9
10## Workflows
11
12### Requesting Permissions
13
14* Click on Request Permissions on Home Screen
15* It will open the Request Permissions page on Health Connect showing toggles for all the
16  permissions.
17* Allow/Disallow the permissions as per the use case.
18
19### Insert Data
20
21* Click Insert Data on Home Screen
22* Select the Data Category.
23* Select the Data Type.
24* There are two types of Records:
25    * Interval Record - These records take place over an interval of time therefore they have a
26      start time and an end time. They generate a single value or a range of values at the end of
27      the whole interval. For example Elevation Gained, record contains a start time, an end time
28      and the total elevation gained in that time period. To insert such a record, users can enter a
29      start time, end time and the recorded values for the given record type.
30    * Instantaneous Record - Contrary to the previous records, these records are recorded at a given
31      instant and not over a range of time. They can be inserted similar to an interval record, just
32      not with a start and end time, instead with a single time stamp.
33* On confirming insert of data, users will be given the inserted record's UUID. Save this UUID to
34  update this data later.
35
36### Update Data
37
38* Updating data will follow the same workflow as insert.
39* Users can goto the page to insert data, enter the updated values and click Update Data.
40* Users will be required to enter the UUID of the record they want to update.
41
42[Demo video for the aforementioned workflows.](https://drive.google.com/file/d/1kbO2duqZ4NGJ9gpRJe3C-3MCjq6F7eFn/view?usp=sharing&resourcekey=0-A9DL0nlGNr56jfcKLHE7IQ)
43
44
45