Create a project in Agora Console, as follows:
Log in to Console, and click in the left navigation menu to enter the Project Management page.
Click Create.
Enter your project name, and select APP ID for the authentication mechanism in the pop-up window.
Click Submit. You can see the created project on the Project Management page.
Agora automatically assigns each project an App ID as a unique identifier.
To copy this App ID, find your project on the Project Management page in Agora Console, and click the eye icon to the right of the App ID.
Refer to the following steps to integrate the RTM SDK into the sample project:
Agora-RTM-Tutorial-Android
folder.*.jar
file in the SDK folder into the libs
directory of the project folder, and copy the x86_64
, x86
, arm64-v8a
, and armeabi-v7a
folders to Agora-RTM-Tutorial-Android\app\src\main\jniLibs
.Refer to the following steps to run the sample project:
Open app
with Android Studio. Android automatically syncs the project with gradle.
After successful syncing, enter your App ID in app > res > values > strings_config.xml.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string translatable="false" name="agora_app_id">Your App ID</string>
</resources>
Compile and run the sample project. Enter any string as the user ID (such as userA
) and click Login to log in to the RTM system.