Including the library in Android Studio

  1. use the “Import Module…” function to include the mybees SDK
    Schermata 2015-09-22 alle 10.40.05
  2. After you’ve imported the module click on “Open Module Settings” and add dependencies from this module.
  3. Now in build.gradle add this dependencies:
    dependencies {
    compile 'com.google.code.gson:gson:2.2.4'
    compile 'com.android.support:appcompat-v7:23.0.1'
    }
  4. Open your strings.xml file. Example path: /app/src/main/res/values/strings.xml.
  5. Add a new string with the name microbees_clinet_id and value as your MicroBees Client ID

  6. In your Manifest.xml add:
    Permission:
    <uses-permission android:name="android.permission.INTERNET"/>

    Meta data:
    <meta-data android:name="com.mybees.android.app.CLIENT_ID" android:value="@string/microbees_clinet_id" />