| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
English | 中文
This project presents you a set of API examples to help you understand how to use Agora APIs.
This section shows you how to prepare, build, and run the sample application.
To build and run the sample application, get an App Id:
Create a developer account at agora.io. Once you finish the signup process, you will be redirected to the Dashboard.
Navigate in the Dashboard tree on the left to Projects > Project List.
Save the App Id from the Dashboard for later use.
Save the App Certificate from the Dashboard for later use.
Generate a temp Access Token (valid for 24 hours) from dashboard page with given channel name, save for later use.
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.
<string name="agora_app_id" translatable="false">YOUR APP ID</string> // assign token and certificate to null if you have not enabled app certificate <string name="agora_app_certificate" translatable="false">YOUR APP CERTIFICATE</string> // 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. <string name="agora_access_token" translatable="false">YOUR ACCESS TOKEN</string>
You are all set. Now connect your Android device and run the project.
The MIT License (MIT)
| Back | FazBrowse Home | New Git URL |