Skip to Content
Identomic SDK Docs

Install the Android SDK

Run the Kotlin preview on a physical Android phone and launch Identomic’s built-in fingerprint scanner from your app.

View as Markdown

Install the SDK module

Get the Android SDK checkout and open it in Android Studio. Open the included demo to try the preview, or copy the sdk module into your host app’s root directory and add it to settings.gradle.kts. The preview supports API 24 or later and compiles against Android SDK 36.

Kotlin
include(":sdk")

Add the library dependency

Add this to the host app’s build.gradle.kts and sync Gradle. The library manifest declares camera access and the capture Activity requests permission at runtime.

Kotlin
dependencies {
    implementation(project(":sdk"))
}

Launch the built-in scanner

Register the activity result contract during Activity or Fragment initialization. Launch it from a button or another user action.

Kotlin
import android.os.Bundle
import android.widget.Button
import androidx.activity.ComponentActivity
import com.identomic.sdk.FingerprintOutcome
import com.identomic.sdk.Identomic

class FingerprintActivity : ComponentActivity() {
    private lateinit var captureButton: Button

    private val scanner = registerForActivityResult(
        Identomic.fingerprintCapture()
    ) { outcome ->
        captureButton.text = when (outcome) {
            is FingerprintOutcome.Completed -> {
                val fingers = outcome.capture.fingers
                val count = fingers.sumOf { it.images.size }
                "Received ${fingers.size} fingers and $count PNGs"
            }
            FingerprintOutcome.Cancelled -> "Capture cancelled. Try again"
            is FingerprintOutcome.Failed -> "Capture failed. Try again"
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        captureButton = Button(this).apply {
            text = "Capture fingerprints"
            setOnClickListener { scanner.launch(Unit) }
        }
        setContentView(captureButton)
    }
}

Run the demo and verify the result

Select the demo run configuration and a physical Android device with a rear camera. Tap Capture fingerprints, grant camera permission, and align the four left fingers. Review the images and tap Use fingerprints. A completed response contains four fingers from index through little finger, each with a grayscale and a binarized PNG. The demo reports eight images. Resolution is unmeasured, and the preview uses fixed guides and adaptive binarization.

Preview coverage

The Android preview currently covers fingerprint capture and PNG output. Face and liveness, passport NFC, ANSI and ISO exports, and iOS algorithm parity are pending.