Skip to main content
This guide builds a single chat window — no sidebar, no conversation list. Users go directly into a one-to-one or group chat. Good for support chat, dating apps, or notification-driven flows. This assumes you’ve already completed the integration guide for your chosen UI toolkit (project created, dependencies installed, init + login working).

What You’re Building

Three components stacked vertically:
  1. Message header — displays user/group name, avatar, and status
  2. Message list — real-time chat history with scrolling
  3. Message composer — text input with media and attachments

Step 1: Set Up the Message Screen

Create an Activity — MessageActivity to display the full-screen chat interface.Layoutactivity_message.xml:
activity_message.xml
ActivityMessageActivity.kt:
MessageActivity.kt
You must use an activity that supports the lifecycle API (AppCompatActivity, ComponentActivity, or FragmentActivity) to properly manage the UI Kit’s lifecycle events.

Step 2: Launch a One-to-One Chat

To open a direct chat with a specific user, pass the User object when launching the screen.
Full example after login:
MainActivity.kt

Step 3: Launch a Group Chat

To open a group chat, pass the Group object instead.
Full example after login:
MainActivity.kt

Step 4: Register Activity & Permissions

Add the activity to your AndroidManifest.xml:
AndroidManifest.xml
Ensure you’ve added the required permissions in your AndroidManifest.xml:
AndroidManifest.xml

Next Steps

Components Overview

Explore all available UI Kit components and their customization options

Theming

Customize colors, fonts, and styles to match your brand

Integration

Back to the main integration guide

Feature Guides

Add capabilities like threaded messages, blocking, and group management