SDKs

Android SDK

The Ours Privacy Android SDK brings privacy-first analytics to your Android applications. It delivers a comprehensive feature set for event tracking, user profiles, and compliance without compromising performance.

Key features include:

  • Event Tracking (track): Record custom events with optional properties.
  • User Identification (identify): Associate events with a specific user ID.

Installation

Add the dependency to your app's build.gradle:

dependencies {
    implementation 'com.oursprivacy:android-sdk:1.0.0'
}

Required Permissions

Add these permissions to your AndroidManifest.xml:

<!-- Required for sending events -->
<uses-permission android:name="android.permission.INTERNET" />

<!-- Optional but recommended for network state awareness -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!-- Optional for Bluetooth state tracking -->
<uses-permission android:name="android.permission.BLUETOOTH" />

Read More

Please read more about the SDK here

Compatibility

  • Android API 21+ (Android 5.0 Lollipop and above)
  • Kotlin 1.5+
  • Gradle 7.0+

Explore the API

Want to see what you can send? Try our playground for a point-and-click payload builder to explore what you can send.

Getting Help

For support or questions, visit our documentation site or reach out to your account representative.

How is this guide?

On this page