Kotlin
Introduction
In this tutorial, you will learn how to create an Android application using kotlin and the Vonage Android Client SDK, and then write the code to make a phone call from your Android app to another Android app. The source code is available on Github.
Two parts are needed to achieve this:
- An Android application that will make the voice call and listen for incomming calls using the Client SDK.
- A publicly accessible URL that serves instructions on how to handle the call. To accomplish this, you will create a webhook server using Node.js, Express and localtunnel.
Completed project
If you would like to follow along without building the app yourself, the completed project is available on Github - please see the app-to-app-kotlin folder.
This tutorial uses com.vonage:client-sdk-voice version 1.2.1 and targets Android SDK version 34
Making an app to app voice call
Make a voice call from an Android app to the same Android app installed on other device using the Android Client SDK.
Steps
1
Introduction to this task2
Prerequisites3
Create a webhook server4
Create a Vonage Application5
Create the users6
Generate JWTs7
Create an Android project8
Add permissions9
Build main screen10
Initialize the client11
Receive call12
Place a call13
What's next?