WuKongIM Docs

Android

Use Java to connect WuKongIMAndroidSDK and manage connections, messages, conversations, and channel profiles.

WuKongIMAndroidSDK is the full WuKongIM SDK for Android. It manages the persistent connection, message delivery, local message database, conversation list, and channel profiles. Use it when your app owns the chat UI.

These guides target WuKongIMAndroidSDK 1.5.5 and use Java throughout.

Before you start

Prepare:

  • a reachable WuKongIM service;
  • two test users, such as alice and bob;
  • a uid, token, connection IP or hostname, and port returned by your application server;
  • an Android application project.

Where does the token come from?

Your application server should create the token and return it to an authenticated user. Never put a WuKongIM admin secret in the app or let the app call an admin API to create tokens.

Read Core Concepts first if “channel” or “conversation” is unfamiliar. Open the API Reference when you only need a method name.

On this page