其他语言版本: 简体中文
The Agora Android Tutorial 1to1 Sample App is an open-source demo that will help you get video chat integrated directly into your Android applications using the Agora Video SDK.
With this sample app, you can:
- Join / leave channel
- Mute / unmute audio
- Enable / disable video
- Switch camera
A full-fledged demo can be found here: OpenVideoCall-Android
Agora Video SDK supports iOS / Android / Windows / macOS etc. You can find demos of these platform here:
First, create a developer account at Agora.io, and obtain an App ID. Update "app/src/main/res/values/strings.xml" with your App ID.
<string name="agora_app_id"><#YOUR APP ID#></string>
Next, download the Agora Video SDK from Agora.io SDK. Unzip the downloaded SDK package and copy *.jar under libs to app/libs, arm64-v8a/x86/armeabi-v7a under libs to app/src/main/libs.
Finally, open project with Android Studio, connect your Android device, build and run.
Or use Gradle
to build and run.
- Android Studio 2.0 or above
- Real devices (Nexus 5X or other devices)
- Some simulators are function missing or have performance issue, so real device is the best choice
- You can find full API document at Document Center
- You can file bugs about this demo at issue
The MIT License (MIT).