# Installation & Quickstart > Add the QwryAI Android SDK to your app and send your agent its first message > [!TIP] > > **Want the whole chat without building a UI?** Open your agent's **Website iframe** address in a WebView. It's the quickest way into an app and shows the same chat as your website. See [Website iframe](/docs/developer-guides/website-integration/iframe). Choose the SDK when you want a native chat screen of your own. ## Prerequisites | Requirement | Minimum | | - | - | | Android | 7.0 (API 24) | | Build tools | Android Studio Ladybug (2024.2.1) and JDK 11 | | Kotlin coroutines | Included with the SDK (`kotlinx-coroutines-android` 1.9.0) | | Jetpack Compose | Not required: the SDK works with any UI toolkit | ## Installation > [tab] Kotlin DSL > > ```kotlin > // build.gradle.kts (app module) > dependencies { > implementation("com.qwryai:qwryai-sdk:0.1.0") > } > ``` > [tab] Groovy > > ```groovy > // build.gradle (app module) > dependencies { > implementation 'com.qwryai:qwryai-sdk:0.1.0' > } > ``` > [!NOTE] > > The SDK declares the `INTERNET` permission in its own manifest, and Android merges it into your app. You don't need to add it yourself. ## Quick start **1. Open the Android SDK channel** In your agent, open **Channels** and select **Manage** on the **Android SDK** card. ![The Android SDK card on the Channels page with the pointer on its Manage button.](annotated/01-android-card.webp "Channels › Android SDK › Manage.") **2. Copy your agent ID** On the **Setup** tab, select **Copy** on the **Agent ID** card. The same tab links to the SDK source and a complete example app, and its **Install** and **Quick start** cards hold the code below with your agent ID already filled in. **3. Switch on Visibility** Open the **Overview** tab and turn on **Visibility**. The same tab sets the model and instructions this channel answers with. ![The Visibility row on the Android SDK channel's Overview tab, with the note When disabled, this channel won't be visible and no messages will be routed to your agent, and the pointer on the toggle, which is still off.](annotated/02-visibility.webp "Overview › Visibility.") > [!WARNING] > > While **Visibility** is off, every SDK request fails with `404` `AGENT_NOT_FOUND`, even with the right agent ID. **4. Choose the channel's actions** The **Actions** tab controls which of your agent's actions can run in the Android SDK. Turn on any **Run client-side code** action your app handles; see [Client-Side Tools](/docs/android-sdk/client-side-tools). ![The Android SDK channel's Setup, Overview and Actions tabs, with the Actions tab showing No actions enabled and the note Enable actions for this agent to control which ones run inside the Android SDK.](annotated/03-actions.webp "Actions: which actions run in the app.") **5. Create a client** ```kotlin import com.qwryai.sdk.Qwry val client = Qwry.create(context, "YOUR_AGENT_ID") ``` `context` can be any Android `Context`, such as an `Activity` or your `Application`. The SDK keeps only its application context, to store this install's device ID and the signed-in user. Create one client and keep it, for example in your `Application` class. **6. Send your first message** ```kotlin lifecycleScope.launch { val response = client.send("Hello! How can you help me?") { onTextDelta = { delta -> // Runs on a background thread for each piece of text print(delta) } } // The whole answer, once it is complete println(response.message.text) println("Conversation: ${response.conversationId}") } ``` Every call is a `suspend` function that's safe to start from the main thread. The next `send` continues the same conversation; call `client.newConversation()` to start another. > [!NOTE] > > There's nothing to close or clean up: the client holds no open connection between calls. Cancel the coroutine that called `send` to stop an answer that's still streaming. ## Next steps > [card] Streaming | /docs/android-sdk/streaming | Show answers as they are written with send and its handlers. > [card] Client-Side Tools | /docs/android-sdk/client-side-tools | Run your agent's client-side actions as Kotlin functions. > [card] Conversations & History | /docs/android-sdk/conversations | Continue, list and page through conversations. > [card] User Identity | /docs/android-sdk/user-identity | Sign users in so their conversations follow them.