3. Installing Bayun SDK

3.1 Adding Bayun SDK

  • Copy the bayun-android-sdk.jar file into the /libs directory of your Android Studio application.
  • Navigate to the JAR file in the Android Studio navigator, right-click and select “Add As A Library…”.
  • Navigate to your build.gradle file and ensure that you include the following:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.amazonaws:aws-android-sdk-s3:2.2.8'


The Bayun Android SDK requires some permissions and references from your app’s AndroidManifest.xml file. These permissions allow the SDK to monitor network state.

<!-- Standard permissions -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

Declare the Service in AndroidManifest.xml:

  android:enabled="true" />

3.2 Adding Bayun AWSS3 wrapper classes

you can find the S3Wrapper folder from Github

Drag and drop the S3Wrapper folder into your project.

Your project is now ready to use the Bayun AWSS3 Wrapper.

results matching ""

    No results matching ""