This page introduces how to quickly launch a flexible classroom.
The following figure shows the workflow to join a flexible classroom.
When an app client requests to join a flexible classroom, the app client and your app server interact with the Agora server in the following steps:
Follow these steps to launch a flexible classroom:
Run the following command to clone the CloudClass-Android project and check out the latest release branch.
git clone https://github.com/AgoraIO-Community/CloudClass-Android.git
git checkout release/apaas/x.y.z
Open the CloudClass-Android project in Android Studio.
Replace the Agora App ID
and Agora App Certificate
in the app/src/normal/res/values/string_config.xml
file with your App ID and App Certificate. Leave Agora API Host
and Report API Host
as is.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="agora_app_id" translatable="false">Agora App ID</string>
<string name="agora_app_cert" translatable="false">Agora App Certificate</string>
<string name="agora_api_host" translatable="false">Agora API Host</string>
<string name="agora_report_host" translatable="false">Report API Host</string>
</resources>
Open the CloudClass-Android project in Android Studio, and run it on a physical mobile device. You can see the following page:
To join a classroom, pass in a room name and user name, select a room type, and click Enter. You can see the following page:
Satisfied with the features of Flexible Classroom and want to explore more? Next, you can integrate Flexible Classroom into your own project.