---
title: "How do I install Sarbacane Chat in an Android app?"
description: "Add the Sarbacane Chat chatbox to your Android app with the Android SDK."
url: https://help.sarbacane.com/en/articles/364-how-do-i-install-sarbacane-chat-in-an-android-app
collection: "For developers"
updated: 2026-12-03
language: en
alternates: [fr, es]
---

# How do I install Sarbacane Chat in an Android app?

Add the Sarbacane Chat chatbox to your Android app with the Android SDK.

To show Sarbacane Chat in your Android app, add the SDK with Gradle, then initialize it with your chatbox's public key. This article is for the app's developer.

## Prerequisites

-   A Sarbacane Chat licence assigned to your user, with access to **Settings**.
    
-   An Android project with a minimum of Android 5.0 (API 21).
    

## Steps

1.  In Sarbacane Chat, at the bottom of the left menu, click **Settings**. Under **Chatbox**, open **Deploy**, then the **Android app** tab.
    
2.  On the right, under **Public brand key:**, click **Copy**. The key starts with "spk-".
    

**Important**: use the public key. The **Secret brand key:** must never appear in the app's code.

3.  In the project's `build.gradle` file, add the JitPack repository:
    

```gradle
allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}
```

4.  In the app module's `build.gradle` file, add the dependency, then sync the project:
    

```gradle
implementation 'com.github.xenoapp:android-sdk:1.0'
```

5.  In `MainActivity`, in the `onCreate` method, initialize the SDK with your public key:
    

```kotlin
import app.xenoapp.sdk.Xeno

Xeno.initialize(this, "YOUR_PUBLIC_KEY")
```

6.  Call `Xeno.show()` where the chatbox should open, for example when a button is tapped:
    

```kotlin
myButton.setOnClickListener { Xeno.show() }
```

**Note**: the SDK and the class use the technical name XenoApp / Xeno. This is expected. The INTERNET permission is already declared by the SDK. To pass the identity of the logged-in user, pass a `XenoIdentity` object to `initialize` (for example `XenoIdentity().setId(…).setName(…).setEmail(…)`).

## Expected result

Launch the app and tap the button: the chatbox opens. Send a test message: it arrives in **Inbox**.

## Troubleshooting

### The chatbox does not open

Check in this order:

1.  The JitPack repository is added to the project's `build.gradle`.
    
2.  The dependency is `com.github.xenoapp:android-sdk:1.0`, and the project has been synced.
    
3.  `initialize` is called before `show()`.
    
4.  The key is the public key ("spk-…"), copied without spaces.
    

If the problem persists, contact our Sarbacane Chat experts at aide-chat@sarbacane.com.

## Related articles

-   [How do I install Sarbacane Chat in an iOS app?](https://help.sarbacane.com/en/articles/363.md)
    
-   [How do I install Sarbacane Chat on my website?](https://help.sarbacane.com/en/articles/117.md)
    
-   [What is Sarbacane Chat and what is each menu for?](https://help.sarbacane.com/en/articles/118.md)
