Logo

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

implementation("io.datazoom.sdk:base-android:{latest-version}")

Groovy DSL

implementation 'io.datazoom.sdk:base-android:{latest-version}'

Initialization

API

import io.datazoom.sdk.Datazoom
import io.datazoom.sdk.Config

fun Datazoom.init(config: Config)

Example

import io.datazoom.sdk.Datazoom
import io.datazoom.sdk.logs.LogLevel
import io.datazoom.sdk.Config.Builder

Datazoom.init(
    build(
        configurationId = {YOUR_API_KEY},
        block = {
            logLevel(LogLevel.VERBOSE)
        }
    )
)

Set custom metadata

import io.datazoom.sdk.Datazoom

Datazoom.setMetadata(
    hashMapOf(
        "property" to "custom property",
        "property2" to "custom property2",
    )
)

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 Data Points

Events

Discrete occurrences driven by user interactions or system actions

Fluxdata

Metrics measuring changing parameters over time