page_type | languages | products | |||
---|---|---|---|---|---|
sample |
|
|
For full instructions on how to build this code sample from scratch, look at Quickstart: Add voice calling to your Android app
To complete this tutorial, you’ll need the following prerequisites:
- An Azure account with an active subscription. Create an account for free.
- Android Studio, for running your Android application.
- A deployed Communication Services resource. Create a Communication Services resource.
- A User Access Token for your Azure Communication Service.
- Run the ACSNativeLogsCollector application. ACSNativeLogsCollector.
- ./app/src/main/java/com/contoso/acsquickstart/MainActivity.java: Contains core logic for calling SDK integration.
- ./app/src/main/res/layout/activity_main.xml: Contains core UI for sample app.
The following classes and interfaces used in the quickstart handle some of the major features of the Azure Communication Services Calling client library:
Name | Description |
---|---|
CallClient | The CallClient is the main entry point to the Calling client library. |
CallAgent | The CallAgent is used to start and manage calls. |
CommunicationTokenCredential | The CommunicationTokenCredential is used as the token credential to instantiate the CallAgent. |
- Open an instance of PowerShell, Windows Terminal, Command Prompt or equivalent and navigate to the directory that you'd like to clone the sample to.
git clone https://github.com/ibrahimmalhas/Android-Video-Calling.git
- you need to replace "<USER_ACCESS_TOKEN>" with the User Access Token you created in prerequisites.
- you need to replace "<YOUR_DEVTUNNEL_ENDPOINT>" with your devtunnel endpoint URL that will recieve the blog files
Open the sample project using Android Studio and run the application.
You can make an outbound VOIP call by providing a user ID in the text field and tapping the Call button. Calling 8:echo123
connects you with an echo bot, this is great for getting started and verifying your audio devices are working.
##Application workflow with log file sharing
- When user press "Report an issue", a new view will appear to add issue descreption.
- When pressing on "Submit" button, a post method will go to "ACSNativeLogsCollector" application sending the issue descreption and all the .blog files to the machine that hosted that application.
Here is a screenshot that shows the files sent to the ACSNativeLogsCollector, txt file for issue descreption and blog file for the logs.