tencent cloud

All product documents
Chat
Last updated: 2024-09-10 15:08:08
Android
Last updated: 2024-09-10 15:08:08
This article explains how to replace the incoming call ringtone of TUICallKit, which is divided into application ringtone and offline push ringtone.

Setting application Ringtone

There are two ways to set the application ringtone:

1. Replace Audio File

If you integrate the TUICallKit component via source code dependency, you can replace the audio files in the tuicallkit-kt/src/main/res/raw folder to customize the ringtone.
File Name
Use
phone_dialing.mp3
Ringtone when initiating a call
phone_ringing.mp3
Ringtone when receiving a call

2. Call Ringtone Interface

You can also customize the incoming call ringtone through the setCallingBell interface.
Kotlin
Java
TUICallKit.createInstance(context).setCallingBell(filePath)
TUICallKit.createInstance(context).setCallingBell(filePath);

Set Mute Mode

If you do not need the phone to ring, you can enable the mute mode using the enableMuteMode interface.
Kotlin
Java
TUICallKit.createInstance(context).enableMuteMode(true)
TUICallKit.createInstance(context).enableMuteMode(true);

Set Offline Push Ringtone

If you want to customize the ringtone, you can replace the file tuicallkit-kt/src/main/res/raw/phone_ringing.mp3.
Note:
After replacing the ringtone, the new ringtone will be used regardless of whether the application is in the foreground, background, or offline.
After replacement, the ringtone for invitations received on other manufacturers' phones will also be the new ringtone.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon