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:
- Download the OBS Android SDK development package.
- Decompress the development package to obtain all JAR files under the libs folder.
- Open Android Studio. Click Start a new Android Studio project to go to the page for creating a project.
- Fill in the configuration items, such as Application name and Project location, and finish creating the project as prompted.
- 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.
- 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.
- 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" />
- Compile the project and finish OBS SDK integration.
Last Article: Preparing a Development Environment
Next Article: Obtaining Endpoints
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.