Skip to main content

Kount Android SDK Documentation

Protect your Android app from fraud with Kount’s powerful device data collection and session tracking SDK. Get started in minutes with support for both Java and Kotlin.

Quick start

Get up and running with the Kount Android SDK in three simple steps.

1

Add the SDK to your project

Add the Kount Data Collector dependency to your app’s build.gradle file:
build.gradle
dependencies {
    implementation 'com.kount:datacollector:5.0.0'
}
Add JitPack repository to your project’s build.gradle:
build.gradle
repositories {
    maven { url 'https://jitpack.io' }
}
2

Configure the SDK

Initialize the SDK in your Activity with your merchant ID and environment:
MainActivity.kt
import com.kount.api.KountSDK

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        
        // Configure the SDK
        KountSDK.setMerchantId("999999")
        KountSDK.setEnvironment(KountSDK.ENVIRONMENT_TEST)
        KountSDK.setCollectAnalytics(true)
    }
}
3

Collect device data

Start data collection when you need to track a session:
KountSDK.collectForSession(
    this,
    { sessionId ->
        Log.d("Kount", "Collection completed with session ID: $sessionId")
        // Send sessionId to your backend
    },
    { sessionId, error ->
        Log.e("Kount", "Collection failed: $error")
    }
)
The SDK returns a unique session ID that you send to your backend for fraud analysis.

Explore the SDK

Learn about key features and integration patterns.

Java integration

Integrate the SDK in Java-based Android applications

Kotlin integration

Modern Kotlin integration with coroutines and lambdas

Permission handling

Request location permissions for enhanced data collection

Data collection

Understand what data is collected and how it’s used

Session management

Track user sessions with unique identifiers

Analytics collection

Enable optional behavioral analytics features

Key features

Everything you need to protect your Android app from fraud.

Device fingerprinting

Collect comprehensive device data including hardware, software, network, and location information for accurate fraud detection.

Session tracking

Generate unique session IDs for every data collection event, making it easy to correlate device data with transactions.

Java & Kotlin support

First-class support for both Java and Kotlin with idiomatic APIs, lambdas, and completion handlers for modern Android development.

Optional analytics

Enable behavioral analytics to collect UI interaction patterns and user behavior data for enhanced fraud detection.

Resources

Additional resources to help you integrate and troubleshoot.

Migration guide

Upgrade from older SDK versions to the latest release

Troubleshooting

Solutions to common integration issues and errors

Changelog

Version history and release notes for all SDK versions

Support

Get help from the Kount community and support team

Ready to protect your Android app?

Start integrating the Kount Android SDK today and protect your users from fraud in minutes.

Start integrating

Build docs developers (and LLMs) love