SDKsClient

Android SDK (client)

Install the Ours Privacy Android SDK to capture privacy-first analytics in Android apps with event tracking and user identification.

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 (use the latest version from Maven Central):

dependencies {
    implementation 'com.oursprivacy:oursprivacy-android:<latest>'
}

Make sure mavenCentral() is listed in your repositories block.

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

For the full API, setup options, and release notes, see the Android SDK README on GitHub.

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, contact support@oursprivacy.com.

Next Steps

How is this guide?

On this page