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

# Overview

> Get started with the CometChat Android SDK - install, initialize, and add real-time chat to your Android application

> [!NOTE]
>
> 🚀 **CometChat Android SDK v5 is now available!** It removes the Gson dependency, adds Parcelable support, and introduces structural equality. [Try the v5 →](https://www.cometchat.com/docs/sdk/android/overview.md)

> [accordion] AI Integration Quick Reference
>
> ```kotlin theme={null}
> // 1. Add dependency to build.gradle
> implementation "com.cometchat:chat-sdk-android:4.2.0"
>
> // 2. Initialize (run once at app start)
> val appSettings = AppSettings.AppSettingsBuilder()
>     .subscribePresenceForAllUsers()
>     .setRegion("REGION")
>     .build()
> CometChat.init(context, "APP_ID", appSettings, callback)
>
> // 3. Login user
> CometChat.login("UID", "AUTH_KEY", callback)  // Dev only
> ```
>
> **Required Credentials:** App ID, Region, Auth Key (dev) or Auth Token (prod)\
> **Get from:** [CometChat Dashboard](https://app.cometchat.com) → Your App → API & Auth Keys

> [!WARNING]
>
> `CometChat.init()` must be called before any other SDK method. Calling `login()`, `sendMessage()`, or registering listeners before `init()` will fail.

> [!WARNING]
>
> **Auth Key** is for development/testing only. In production, generate **Auth Tokens** on your server using the REST API and pass them to the client. Never expose Auth Keys in production client code.

This guide demonstrates how to add chat to an Android application. Before you begin, we strongly recommend reading the [Key Concepts](https://www.cometchat.com/docs/sdk/android/v4/key-concepts.md) guide.

## Requirements

| Requirement | Minimum Version |
| - | - |
| Android API Level | 21 |
| Android API Level (with Calls SDK) | 24 |
| Java | 8 |
| AndroidX | Required |

## Getting Started

**1. Get your credentials**

[Sign up for CometChat](https://app.cometchat.com) and create an app. Note your App ID, Region, and Auth Key from the Dashboard.

**2. Install and initialize**

Add the SDK to your project and initialize it with your credentials. See [Setup SDK](https://www.cometchat.com/docs/sdk/android/v4/setup.md).

**3. Authenticate users**

Log in users with Auth Key (development) or Auth Token (production). See [Authentication](https://www.cometchat.com/docs/sdk/android/v4/authentication-overview.md).

**4. Start building**

Send your first message, make a call, or manage users and groups.

## Features

> [card] [Messaging](https://www.cometchat.com/docs/sdk/android/v4/send-message.md)
>
> 1:1 and group chat, threads, reactions, typing indicators, read receipts, file sharing, and interactive messages.

> [card] [Voice & Video Calling](https://www.cometchat.com/docs/sdk/android/v4/calling-overview.md)
>
> Ringing flows, direct call sessions, standalone calling, recording, and screen sharing.

> [card] [Users](https://www.cometchat.com/docs/sdk/android/v4/users-overview.md)
>
> Create, retrieve, and manage users. Track online/offline presence and block/unblock users.

> [card] [Groups](https://www.cometchat.com/docs/sdk/android/v4/groups-overview.md)
>
> Public, private, and password-protected groups with member management, roles, and ownership transfer.

## Sample Apps

Import the app into Android Studio and follow the steps mentioned in the `README.md` file.

> [card] [Java](https://github.com/cometchat-pro/android-java-chat-app)
>
> Java sample app

> [card] [Kotlin](https://github.com/cometchat-pro/android-kotlin-chat-app)
>
> Kotlin sample app

## UI Kits

Refer to the [Android UI Kit](https://www.cometchat.com/docs/ui-kit/android/overview.md) for pre-built, customizable components.

## Resources

> [card] [Key Concepts](https://www.cometchat.com/docs/sdk/android/v4/key-concepts.md)
>
> UIDs, GUIDs, auth tokens, and core SDK concepts

> [card] [Message Structure](https://www.cometchat.com/docs/sdk/android/v4/message-structure-and-hierarchy.md)
>
> Message categories, types, and hierarchy

> [card] [Changelog](https://www.cometchat.com/docs/sdk/android/v4/changelog.md)
>
> Latest SDK version and release notes

> [card] [Upgrading from V3](https://www.cometchat.com/docs/sdk/android/v4/upgrading-from-v3-guide.md)
>
> Migration guide for V3 users

> [card] [Publishing to Play Store](https://www.cometchat.com/docs/sdk/android/v4/publishing-app-on-playstore.md)
>
> Steps to publish your Android app

***

## Next Steps

> [card] [Setup SDK](https://www.cometchat.com/docs/sdk/android/v4/setup.md)
>
> Detailed installation and initialization guide for the Android SDK

> [card] [Key Concepts](https://www.cometchat.com/docs/sdk/android/v4/key-concepts.md)
>
> Understand core concepts like users, groups, messages, and conversations

> [card] [Authentication](https://www.cometchat.com/docs/sdk/android/v4/authentication-overview.md)
>
> Learn about secure authentication with Auth Tokens for production apps

> [card] [Send Messages](https://www.cometchat.com/docs/sdk/android/v4/send-message.md)
>
> Start sending text, media, and custom messages to users and groups


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.