Before publishing or subscribing to any stream, ensure that you prepared the development environment and joined the channel. See Integrate the SDK.

Implementation

The audio function of the Agora SDK for Android is enabled by default. You can subscribe to and publish audio streams without calling any other API methods once you have joined the channel.

Next Steps

You are in a voice call. When the call ends, use the Agora SDK to exit the current call:

For more functions, you can refer to the following sections: