8x8 Connect

Welcome to the 8x8 CPaaS developer portal.
In this portal, you will find API references and guides describing how you can integrate our communication services and products into your workflows.

To get started, sign-up on 8x8 Connect to create your account and get your API key.

Android - Integrating the SDK

How to integrate the Android Voice SDK

SDK Setup

Requirements

To use the Voice SDK you need:

Setup the development environment

Complete the following steps to setup your Android studio development environment:

  1. Open Android Studio and click Start a new Android Studio project.

Android Studio 1

  1. In the Select a Project Template window, select a template of your choice and click Next.

Android Studio 2

  1. In the Configure Your Project window:

    • Enter the name of your app and your Package name.
    • Enter the location of where your project will be saved
    • Select either Java or Kotlin as the language
    • Select API 23: Android 6.0 (Marshmellow) as the Minimum SDK and click Finish.

Android Studio 3

Add the Voice SDK as a dependency

Confirm you have the latest dependency version:

  1. Add the following to your top-level build.gradle file:

Android Studio 4

allprojects {
   repositories {
     ...
     mavenCentral()
   }
}
  1. Add the Wavecell dependency as well as sourceCompatibility in your app-level build.gradle file:

Android Studio 5

android {
   ...
   compileOptions {
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8
   }
}

dependencies {
   ...
   implementation "com.eght:wavecell-voice-sdk:[LATEST_VERSION]"
}
  1. Click on File > Sync Project with Gradle Files.

You can now use the Voice SDK in your application.

Permissions

Add the following uses-permission elements to your AndroidManifest:

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />

Updated 16 days ago



Android - Integrating the SDK


How to integrate the Android Voice SDK

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.