Install Adroid UI Kit

The Android Video UI kit contains methods that you can use to develop and integrate the video apps with the Android platform. Before starting with the app development, download the required files and meet all other prerequisites.

To install the UI kit:

  1. Download the latest Android SDK files from the Android Archive library.
  2. Download the latest Android UI Kit from the Android Archive library.
  3. Add the downloaded files to the lib folder of your app server.
  4. Go to the root directory of your project and locate the build.gradle file.
  5. Add the following code in the allprojects.repositories section of the file:
allprojects{ repositories { flatDir { dirs 'libs' }}}
  1. Locate your app's build.gradle file and add the following code under the dependencies section of the file:
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
implementation('io.socket:socket.io-client:1.0.1') {
exclude group: 'org.json', module: 'json'
}
implementation 'org.webrtc:google-webrtc:1.0.32006'

Define Permissions

  1. Define the permissions needed on the Android device. To define the permissions, modify the AndroidMainfest.xml file as below.
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"android:usesPermissionFlags="neverForLocation"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
  1. Obtain a token to join an RTC session on the EnableX platform.

    You need to create a token for a video room. This token has an assigned role for users such as participants, moderators, and viewers. For more information, see Create a Token.