Use the app SDK to create your app. While you are welcome to develop from scratch if that suits you, we highly recommend starting with and customizing the starter app and following this development workflow:
- If you are not already familiar with developing code in Android Studio, take a look at https://developer.android.com/studio/intro.
- In Android Studio, clone the starter-app GitHub repository to retrieve the app starter code.
Edit the code in the
mainbranch to customize it for your study.
mg-studybranch contains the completed code described in the tutorial and demoed at the Samsung Developer Conference (SDC22). Compare the
mg-studybranches to see the minimal changes needed to make the app your own.
The app needs to be able to:
- Determine participant eligibility.
- Acquire informed consent from participants.
- Register participants.
- Specify the data to collect (for example, heart rate, step count, and blood pressure).
- Present surveys.
- Collect and pass data on for storage.
- Present data visualizations to keep participants engaged.
With the full stack, an Android mobile app receives data from the wearable device and transmits the data to the backend system.
With just the SDK, an Android mobile app receives data from the wearable device and stores the data in your own backend or on the device itself.