Before publishing or subscribing to any stream, ensure that you prepared the development environment and joined the channel. See Integrate the SDK.
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.
You are in a voice call or broadcast. When the call ends, use the Agora SDK to exit the channel:
For more functions, you can refer to the following sections: