Hubro Documentation Help

Android

Hubro Connect library for Android is an integration of the Connect API built specifically for Android. Additionally, it also allows you to collect data from Health Connect, stream this data to the Hubro backend to the Hubro backend, and integrates caching, as well as other instrumentation that developers would eventually need to implement.

The library can be used in your Android application by including following lines in the build.gradle.kts file

dependencies { implementation("hubro-platform:hubro-connect") } repositories { maven { url = uri("https://maven.pkg.github.com/hubro-platform/hubro-connect") } }

The Hubro session which allows you, for example, to authenticate the user, view assigned questionnaires and collect data can be constructed as follows

import no.hubroplatform.hubroconnect.HubroSessionBuilder var baseUrl, connectToken val session = HubroSessionBuilder(baseUrl, connectToken)
Last modified: 07 January 2025