Skip to main content
Version: 0.0.x

Getting Started - Android SDK

Android SDK is natively written SDK using Java. It is compatible with both Java and Kotlin.

Install an Android SDK

The easiest way to get started is by installing the sdk in your app.

Step 1: Add the repositories into your project.

  • If your Android Studio Version is older than Android Studio Bumblebees, add the repository to project's build.gradle file.
  • If your are using Android Studio Bumblebees or newer Version, add the repository to settings.gradle file.
settings.gradle
dependencyResolutionManagement{
repositories {
// ...
maven { url 'https://jitpack.io' }
jcenter()
}
}

Step 2: Add the dependency in app/build.gradle:

app/build.gradle
dependencies {
implementation 'live.videosdk:android-sdk:0.0.16'

// other app dependencies
}

Step 3: Add all the following permissions to AndroidManifest.xml

AndroidManifest.xml
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />

Step 4: Create MainApplication class with the following code

MainApplication.kt
package live.videosdk.demo;

import live.videosdk.rtc.android.VideoSDK;

class MainApplication : Application() {
override fun onCreate() {
super.onCreate()

VideoSDK.initialize(applicationContext)
}
}

Step 5: Add MainApplication to AndroidManifest.xml

AndroidManifest.xml
<application
android:name=".MainApplication"
>
<!-- ... -->
</application>
note

Check out official example of Android SDK implementation for Java and Kotlin as mentioned below: