> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adgentek.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Android (Kotlin)

> Jetpack Compose components via Maven Central, with Kotlin coroutines and Material 3 theming. Full demand eligibility.

<Info>
  **Full demand eligibility.** Runs in a native app context. All four demand tiers serve, and tracking is automatic.
</Info>

The Android SDK is Compose-first: Kotlin, coroutines and Flow for async, Material 3 theming, distributed via Maven Central. A View interop wrapper is included for hybrid codebases that still run legacy Views.

## Install

```kotlin theme={null}
// build.gradle.kts
dependencies {
    implementation("ai.adgentek:adgentek-android:1.0.0")
}
```

## Initialize

```kotlin theme={null}
class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        Adgentek.configure(context = this, token = "YOUR_PUBLISHER_TOKEN")
    }
}
```

## Placement (Compose)

```kotlin theme={null}
@Composable
fun MessageTurn(query: String, response: String) {
    AIMessage(response)
    AdgentekPlacement(query = query, response = response)
}
```

Material 3 dynamic theming is inherited by default, so the unit adapts to the user's system palette. Override with an explicit `AdgentekTheme` when you need brand control; see [Theming](/publishers/concepts/theming).

## Placement (View interop)

For legacy View hierarchies:

```kotlin theme={null}
val placement = AdgentekPlacementView(context).apply {
    bind(query = userMessage, response = aiResponse)
}
container.addView(placement)
```

## Verify

Enable the debug inspector and confirm successful init and serve requests, then an impression event on render.
