Application collectors
Android Collector
The Android Collector by Datazoom is an easy to install SDK for your Android Collector applications that makes the following data points automatically collectable in real time. The collector can also be configured to make the data points from the media player extensions listed below automatically collectable.
Integration Instructions
Dependency
Add the following to your build.gradle.kts or build.gradle:
Kotlin DSL
1implementation("io.datazoom.sdk:base-android:{latest-version}")Groovy DSL
1implementation 'io.datazoom.sdk:base-android:{latest-version}'Initialization
API
1import io.datazoom.sdk.Datazoom2import io.datazoom.sdk.Config34fun Datazoom.init(config: Config)Example
1import io.datazoom.sdk.Datazoom2import io.datazoom.sdk.logs.LogLevel3import io.datazoom.sdk.Config.Builder45Datazoom.init(6 build(7 configurationId = {YOUR_API_KEY},8 block = {9 logLevel(LogLevel.VERBOSE)10 }11 )12)Set custom metadata
1import io.datazoom.sdk.Datazoom23Datazoom.setMetadata(4 hashMapOf(5 "property" to "custom property",6 "property2" to "custom property2",7 )8)Media Player Extensions
If your Android application has a media player, Datazoom’s Android Collector can be extended with the following media player extensions.
Supported Features
Supported Data Points
Events
Discrete occurrences driven by user interactions or system actions
Metadata
Device
Network
Location
Custom
Fluxdata
Metrics measuring changing parameters over time