• Object Storage Service

  1. Help Center
  2. Object Storage Service
  3. Developer Guide (Android SDK)
  4. Quick Start
  5. Installing the SDK

Installing the SDK

Import the JAR package into the new project on Android Studio 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. 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" />