Installing the SDK

If you have any questions during development, post them on the Issues page of GitHub. For details about parameters and usage of each API, see the API Reference

Import the JAR package in the Android Studio project. The procedure is as follows:

  1. Download the OBS Android SDK development package.
  2. Decompress the development package to obtain all JAR files under the libs folder.
  3. Open Android Studio. Click Start a new Android Studio project to go to the page for creating a project.
  4. Fill in the configuration items, such as Application name and Project location, and finish creating the project as prompted.
  5. Find the created project in the file system and copy the JAR files obtained from step 2 to the app/libs subfolder of the project.
  6. On Android Studio, go to the app/libs subfolder of the new project and right-click each JAR file in this folder and choose Add As Library to add it as a library file of the project.
  7. Open the AndroidManifest.xml file and add the following code segments to configure the SDK-required permissions:

    <uses-permission android:name="android.permission.INTERNET" /> 
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.GET_TOP_ACTIVITY_INFO" />

  8. Compile the project and finish OBS SDK integration.