tencent cloud

Tencent Real-Time Communication

Release Notes and Announcements
Release Notes
Recent Product Announcement
TRTC Live (TUILiveKit) Product Launch Announcement
TRTC Conference Official Editions Launched
The commercial version of Conference is coming soon
Terms and Conditions Applicable to $9.9 Starter Package
Rules for the "First Subscription $100 Discount" Promotion
Announcement on the Start of Beta Testing for Multi-person Audio and Video Conference
TRTC Call Official Editions Launched
License Required for Video Playback in New Version of LiteAV SDK
TRTC to Offer Monthly Packages
Product Introduction
Overview
Concepts
Features
Strengths
Use Cases
Performance Statistics
Tencent RTC Quickplay: Experience Ultimate Real-Time Audio and Video Interaction!
Purchase Guide
Billing Overview
Free Minutes
Monthly subscription
Pay-as-you-go
TRTC Overdue and Suspension Policy
FAQs
Refund Instructions
User Tutorial
Free Demo
Call
Overview
Activate the Service
Run Demo
Integration
Offline Call Push
Conversational Chat
On-Cloud Recording
AI Noise Reduction
UI Customization
Calls integration to Chat
Additional Features
No UI Integration
Server APIs
Client APIs
Solution
ErrorCode
Release Notes
FAQs
Conference
Overview(TUIRoomKit)
Activate the Service (TUIRoomKit)
Run Demo(TUIRoomKit)
Integration(TUIRoomKit)
Screen Sharing (TUIRoomKit)
Schedule a meeting (TUIRoomKit)
In-meeting Call (TUIRoomKit)
UI Customization(TUIRoomKit)
Virtual Background (TUIRoomKit)
Conference Control (TUIRoomKit)
Cloud Recording (TUIRoomKit)
AI Noise Reduction (TUIRoomKit)
In-Conference Chat (TUIRoomKit)
Robot Streaming (TUIRoomKit)
Enhanced Features (TUIRoomKit)
Client APIs (TUIRoomKit)
Server APIs (TUIRoomKit)
FAQs (TUIRoomKit)
Error Code (TUIRoomKit)
SDK Update Log (TUIRoomKit)
Live
Billing of Video Live Component
Overview
Activating the Service (TUILiveKit)
Run Demo
No UI Integration
UI Customization
Live Broadcast Monitoring
Video Live Streaming
Voice Chat Room
Advanced Features
Client APIs
Server APIs
Error Codes
Release Notes
FAQs
RTC Engine
Activate Service
SDK Download
API Examples
Usage Guidelines
API Reference Manual
Advanced Features
AI Integration
Overview
Configure MCP Server
Install Skills
Integration Guide
FAQ
RTC RESTFUL API
History
Introduction
API Category
Room Management APIs
Stream mixing and relay APIs
On-cloud recording APIs
Data Monitoring APIs
Pull stream Relay Related interface
Web Record APIs
AI Service APIs
Cloud Slicing APIs
Cloud Moderation APIs
Making API Requests
Call Quality Monitoring APIs
Usage Statistics APIs
Data Types
Appendix
Error Codes
Console Guide
Application Management
Package Management
Usage Statistics
Monitoring Dashboard
Development Assistance
Solution
Real-Time Chorus
FAQs
Migration Guide
Billing
Features
UserSig
Firewall Restrictions
How to Downsize Installation Package
Android and iOS
Web
Flutter
Electron
TRTCCalling for Web
Audio and Video Quality
Others
Legacy Documentation
RTC RoomEngine SDK(Old)
Integrating TUIRoom (Web)
Integrating TUIRoom (Android)
Integrating TUIRoom (iOS)
Integrating TUIRoom (Flutter)
Integrating TUIRoom (Electron)
TUIRoom APIs
On-Cloud Recording and Playback (Old)
RTC Analytics Monthly Packages (Previous Version)
Protocols and Policies
Compliance
Security White Paper
Notes on Information Security
Service Level Agreement
Apple Privacy Policy: PrivacyInfo.xcprivacy
TRTC Policy
Privacy Policy
Data Processing And Security Agreement
Glossary

Android

PDF
Focus Mode
Font Size
Last updated: 2026-01-16 22:02:56
This document will guide you through quickly running the audio and video call Demo. By following this guide, you can run the Demo within 10 minutes and experience an audio and video call feature with a complete UI.


Prerequisites

Environment Setup

Two devices running Android 5.0 or above.

Activate the Service

Please refer to Activate the Service to obtain your SDKAppID and SDKSecretKey. These will be used in a later step (Configure and Run the Demo).


Downloading the Demo

1. Download the TUICallKit Demo source code from GitHub, or run the following command in the command line:
git clone https://github.com/Tencent-RTC/TUIKit_Android.git
2. Open the TUIKit_Android/application directory through Android Studio:

Tip:
Currently, TUICallKit is compatible with Gradle 7.x and 8.x. If you encounter an issue like: Your build is currently configured to use incompatible Java 21.0.5 and Gradle 8.0. Cannot sync the project.

Recommended Solution: Change the Java version in Android Studio to 17.
1. Open Android Studio Settings.
Windows:File > Settings
Mac:Android Studio > Preferences
2. Modify the Java compiler settings.
Path: Build, Execution, Deployment > Build Tools > Gradle
Change the Gradle JDK to 17 (if installed) or Use project JDK

Running the Demo

Run the program through Android Studio. Log in with two different user accounts on two devices, one as the caller and one as the callee, to complete an audio/video call experience.

Step 1: Configure and Run the Demo

1. Configure SDKAppID and SecretKey: Open theapplication/debug/src/main/java/com/tencent/qcloud/tuikit/debug/GenerateTestUserSig.javafile, and fill in the SDKAppID and SDKSecretKey obtained during Activate the Service:

2. Compile and Run: Please select a device and run the Demo.


Step 2: Login and Registration

After the Demo starts, please enter an ID in the User ID field. If your current UserID has not been registered, you will enter the registration interface, where you can set a nickname for yourself.
Logged-in User: Charlie
Logged-in User: Jane




Tip:
Avoid using simple UserIDs such as "1", "123", or "111". These IDs are commonly used during collaborative development and may already be in use by others, resulting in login failures. We recommend using a unique UserID during testing.

Step 3: Make a Call

1. Click Call on the interface. On the next screen, enter the recipient's ID in the User ID List and select the Media Type.
2. Click Initiate a Call.
Click Call
Charlie calls Jane
Jane receives the incoming call
The call starts after Jane clicks Answer




Tip:
To start a call, you need to confirm that the Callee User ID is a valid and logged-in ID.

FAQs

A signature error or login failure occurs when running the demo?

Please check if the SDKAppID and SDKSecretKey you filled in theTUIKit_Android/application/debug/src/main/java/com/tencent/qcloud/tuikit/debug/GenerateTestUserSig.java file are correct. Ensure they are the keys you obtained when Activate the Service.

Purchase prompt appears during call?

Error Prompt
Solution
You have not purchased an audio and video calling package. Please go to the IM console to activate a free trial or purchase the official version.
You have not purchased an audio and video calling package. Please go to the console to activate a free trial or purchase the official version.
The audio and video calling package you currently purchased does not support this feature. It is recommended that you upgrade your package type.
The audio and video calling package you currently purchased does not support this feature. It is recommended that you go to the console to upgrade your package type.
Tip:
If you encounter other error prompts, you can refer to the TUICallDefine Error Codes for a solution.

Contact Us

If you have any questions or suggestions during integration or usage, feel free to join our Telegram group or contact us for support.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback