Skip to Content
DocumentationAndroid SDKOverview

Android SDK

Use 1.1.0-beta.2 for controlled analytics integration on Android API 21 and later. It supports install/event analytics, offline queue recovery, collection controls and opt-in sandbox permission evidence.

The public JitPack package passed a fresh independent consumer build. The SDK passed 46 tests and live Android emulator checks for ingestion, offline recovery and sharing restrictions. Google Play referrer attribution and Android Meta/X delivery remain separate validation gates; installing this SDK does not enable paid-ad attribution or partner postbacks.

Identity and storage

The SDK creates a random installation ID scoped to your AttributeHQ app. It does not collect GAID or Android ID, and does not declare the AD_ID permission. Events, preferences and pending evidence use app-private SharedPreferences. Review your app’s backup settings; this storage is not an encrypted vault.

Quick example

import com.attributehq.sdk.AttributeHQ import com.attributehq.sdk.AttributeHQConfiguration val config = AttributeHQConfiguration( apiKey = "ak_your_write_only_sdk_key", appId = "your-dashboard-app-uuid" ) AttributeHQ.initialize(applicationContext, config) AttributeHQ.track("onboarding_completed")

A new installation collects after initialization by default. To wait for your app’s consent/settings decision, initialize with initialCollectionEnabled = false; see privacy controls.

Next steps