Java
Introduction
In this tutorial, you will learn how to create an Android application using Kotlin and the Nexmo Android Client SDK, and then write the code to make a phone call from your Android app to a phone.
Two parts are needed to achieve this:
- An Android application that will make the voice call 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-phone-java folder.
This tutorial uses NexmoClient version 4.0
Making an in-app voice call
You make a voice call from an Android app to a phone.
Steps
1
Introduction to this task2
Prerequisites3
Create a webhook server4
Create a Vonage Application5
Link a Vonage number6
Create a User7
Generate a JWT8
Create an Android project9
Add permissions10
Build main screen11
Initialize the client12
Place a call13
End a call14
What's next?