I am creating an application for a challenge as an android developer that reads ibeacons with the altbeacons library.
I was able to identify the UUID, Major, Minor .. but in the test asks to do this reading with bluetooth turned off, searched and found nothing, somehow is it possible to do this?
Please help me and sorry my english.
Thanks!
I'm using didRangeBeaconsInRegion to detect
public void onBeaconServiceConnect() {
beaconManager.removeAllMonitorNotifiers();
beaconManager.removeAllRangeNotifiers();
beaconManager.addRangeNotifier(new RangeNotifier() {
@Override
public void didRangeBeaconsInRegion(Collection<Beacon> beacons, Region region) {
if (beacons.size() > 0) {
Log.i(TAG, "my first beacon "
+ beacons.iterator().next().getId1() + " "
+ beacons.iterator().next().getId2() + " "
+ beacons.iterator().next().getId3());
}
}
});
try {
beaconManager.startRangingBeaconsInRegion(new Region("myRangingUniqueId", null, null, null));
} catch (RemoteException e) {
}
}