VoxImplant Android SDK lets you embed voice communication into your native Android applications. Start by downloading one of our demo applications:
You can make and receive calls using your device's data connection to/from any other endpoint that works with VoxImplant: other mobile app built using VoxImplant Mobile SDK, web application built using the Web SDK, SIP phones and phone numbers all over the world.
Set requied permissions for application by modifying the AndroidManifest.xml file. Demo project manifest file can be used as a reference for correct permissions list.
In your activity, create instance field of type VoxImplantClient and initialize it as specified in documentation:
Object set viw setCallback will later receive all events from SDK, for example ones related to the connection itself, login status, calls and audio status.
It's the same as using WebSDK, you need to connect to cloud via:
As a result onConnectionSuccessful or onConnectionFailedWithError method of callback object will be called:
After connection is established, use login function to authenticate. For example, when you need to login user myuser to applcation myapp in your VoxImplant account named myaccount with password mypass:
As a result onLoginSuccessful or onLoginFailed method of callback object will be called:
Use startCall method to initiate outgoing call:
When application receives incoming call, onIncomingCall method of callback object is called. Use answerCall method to answer a call with following code:
Audio interruption happens when an incoming call to Android arrives. If user answers call, application will be suspended and most likely it will be disconnected from server because of timeout.
For more information, please read our reference documentation .