Setup Guide
This document provides a comprehensive overview of the Spike SDK for android, detailing its features and capabilities.
Current Android(Kotlin) SDK Version: 4.2.62
- Android Package: Available here
- API Reference for SpikeSDK: Available here
- Example app: Available here
Requirements
Android 9.0+ (Level 28, P, Pie)
Setup Guide
To add the SDK to your project, you have to add the following to your project’s build.gradle
file in the repositories block.
After that, add the following to your app’s build.gradle
file in the dependencies block.
Android permissions
Include the necessary health permissions in your AndroidManifest.xml to fully leverage the Spike SDK and access data from apps integrated with Health Connect. Please refer to this guide for details on the required permissions.
Note: Only request permissions essential to your app’s functionality. Requesting unused permissions may lead to Play Store rejections.
Add an intent filter to your activity definition so that you can request the permissions at runtime.
To handle Android 14 you also need to add activity-alias to your AndroidManifest.xml It is just a wrapper for the activity that requests permissions so no real activity is necessary.