- API & Docs
Want your Android app to make and receive calls? Want to add voice-chat support to your Android game for players to mock each other? Look no further!
Twilio Client Android is a Java library for Android that enables voice communications with landlines or other Twilio Client devices, including web browsers and other mobile devices.
There are three major pieces in a Twilio Client app:
The primary class for connecting to Twilio services from your app is
Device. This class coordinates service authorization with
Twilio, listens for incoming connections, and establishes outgoing
connections. An instance of this class is created using a "capabilty
token", described in the next section.
Connections to Twilio, either incoming or outgoing, are represented by
instances of the class
The Twilio Client SDK uses a capability token to sign communications from your Android app to Twilio. These tokens are created by you on your server and allow you to specify what capabilities are going to be available to your app, such as whether it can receive incoming connections, make outgoing connections, etc. These tokens always have an expiration, which means all tokens have a limited lifetime to protect you from abuse. It is up to you to determine how often these tokens must be refreshed.
Twilio capability tokens are based on the JSON Web Token standard. They can be generated with our helper libraries that come in a variety of languages.