Adding the Estimote SDK to your Android project is simple. Add the following code to your project's Gradle script (Module: app):
compile 'com.estimote:sdk:0.11.1@aar'
As mentioned in the previous chapter, Android SDK version 23 or greater requires the explicit ACCESS_COARSE_LOCATION permission at runtime. I'm giving you the code snippet for these permissions; for details, you can consult the Android Bluetooth Low Energy section of the previous chapter.
Paste the following code to AndroidManifest.xml:
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Use the following code in Activity.java:
// ---------------- MANUAL PERMISSIONS-----------------String[] permissionString = new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, ...