/AprilBeacon-Android-SDK

Android SDK for AprilBeacon

Primary LanguageJava

AprilBrother-Android-SDK

AprilBrother SDK for Android

You can scan beacon and modify beacon

Docs

Installation

  • Copy ab-sdk-beta.jar to your libs directory.
  • Add following permissions and service declaration to your AndroidManifest.xml:
 <uses-permission android:name="android.permission.BLUETOOTH"/>
 <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
 <!-- 声明应用需要使用设备的蓝牙BLE -->
 <uses-feature
        android:name="android.hardware.bluetooth_le"
        android:required="true" />

 <service android:name="com.aprilbrother.aprilbrothersdk.service.BeaconService"
         android:exported="false"/>
 <!--support modify abeacon with sdk1.6.0 -->
 <service android:name="com.aprilbrother.aprilbrothersdk.services.ABeaconUartService"
          android:exported="false" />

Precautions

  • If you want to use change the characteristic you should make sure that our beacon's hardware is above 2.0
  • the default password is AprilBrother

Proguard

  • -libraryjars libs/ab-sdk-beta1.6.1.jar
  • -keep class com.aprilbrother.aprilbrothersdk.**
  • -keep class com.aprilbrother.aprilbrothersdk.Utils{*;}