This document introduces how to get the source code of Agora Flexible Classroom (Android) from GitHub and run the project, so as to quickly launch a flexible classroom and experience the features.
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:
Running the web client of Flexible Classroom depends on Git, Android Studio, and Java Development Kit.
To prepare your development environment, refer to the following steps:
The source code of Flexible Classroom (Android) is in the CloudClass-Android repository. To download the source code to your local device, refer to the following steps:
To clone the repository, run the following command:
git clone https://github.com/AgoraIO-Community/CloudClass-Android.git
To switch the branch, run the following command. Remember to replace {VERSION} with a specified version number:
git checkout release/{VERSION}
For example, if you want to switch to the branch of v2.6.2, just run the following command:
git checkout release/2.6.2
Agora recommends switching the branch of the latest release. The following image shows how to see the latest release branch in the GitHub repository:
Follow these steps to launch a flexible classroom:
Import the CloudClass-Android project in Android Studio.
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.