# API Example Android *English | [中文](README.zh.md)* This project presents you a set of API examples to help you understand how to use Agora APIs. ## Prerequisites - Android Studio 3.0+ - Physical Android device - Android simulator is supported ## Quick Start This section shows you how to prepare, build, and run the sample application. ### Obtain an App Id To build and run the sample application, get an App Id: 1. Create a developer account at [agora.io](https://dashboard.agora.io/signin/). Once you finish the signup process, you will be redirected to the Dashboard. 2. Navigate in the Dashboard tree on the left to **Projects** > **Project List**. 3. Save the **App Id** from the Dashboard for later use. 4. Save the **App Certificate** from the Dashboard for later use. 5. Generate a temp **Access Token** (valid for 24 hours) from dashboard page with given channel name, save for later use. 6. Open `Android/APIExample` and edit the `app/src/main/res/values/string-config.xml` file. Update `YOUR APP ID` with your App Id, update `YOUR APP CERTIFICATE` with the main app certificate from dashboard, and update `YOUR ACCESS TOKEN` with the temp Access Token generated from dashboard. Note you can leave the token and certificate variable `null` if your project has not turned on security token. ``` YOUR APP ID // assign token and certificate to null if you have not enabled app certificate YOUR APP CERTIFICATE // assign token and certificate to null if you have not enabled app certificate or you have set the certificate above. // PS:It is unsafe to place the App Certificate on the client side, it is recommended to place it on the server side to ensure that the App Certificate is not leaked. YOUR ACCESS TOKEN ``` You are all set. Now connect your Android device and run the project. ## Contact Us - For potential issues, take a look at our [FAQ](https://docs.agora.io/en/faq) first - Dive into [Agora SDK Samples](https://github.com/AgoraIO) to see more tutorials - Take a look at [Agora Use Case](https://github.com/AgoraIO-usecase) for more complicated real use case - Repositories managed by developer communities can be found at [Agora Community](https://github.com/AgoraIO-Community) - You can find full API documentation at [Document Center](https://docs.agora.io/en/) - If you encounter problems during integration, you can ask question in [Stack Overflow](https://stackoverflow.com/questions/tagged/agora.io) - You can file bugs about this sample at [issue](https://github.com/AgoraIO/API-Examples/issues) ## License The MIT License (MIT)