-
Notifications
You must be signed in to change notification settings - Fork 10
Home
Alann Maulana edited this page Nov 19, 2016
·
2 revisions
Cubeacon SDK for Android is a library to allow interaction with any beacons. The SDK system requirements are Android 4.3 or above and Bluetooth Low Energy.
Cubeacon SDK allows for:
- Beacon ranging (scans beacons and optionally filters them by their properties).
- Beacon monitoring (monitors regions for those devices that have entered/exited a region).
Learn more at:
- Android API Reference Documentation
- Sample application demos of SDK usage
- Download Cubeacon App in Google Play Store to see some implementation of Cubeacon SDK
-
Download
cubeacon-x.y.z.aar
from Github release page. -
Then copy it to your
libs
directory. -
On your
build.gradle
withinapp
module, add this lines below beforedependencies
tagrepositories{ flatDir { dirs 'libs' } }
Then add
compile 'com.eyro.cubeacon:cubeacon:x.y.z@aar'
into yourdependecies
. -
Create custom application class and add the following code to the
onCreate()
method to initialize the Cubeacon SDK.Cubeacon.initialize(this);
Don't forget to add your custom application class into
AndroidManifest.xml
(Optional) You can add some custom setup :
- Enable Cubeacon SDK debug logging when in development mode by calling
Logger.setLogLevel(LogLevel)
before initialize SDK. - You can choose
LogLevel
from :NONE
,ASSERT
,DEBUG
,ERROR
,INFO
,WARN
, orVERBOSE
.
- Enable Cubeacon SDK debug logging when in development mode by calling
- Ranging for beacons
- Monitoring beacon
- Bootstrap Region Monitoring
- Show notification
Read about detailed changelog here