Android Beacon Library : An Android library providing APIs to interact with Beacons. builder.setMessage("Please grant location access so this app can detect beacons in the background."); builder.setPositiveButton(android.R.string.ok, null).