Background
I want to programm an android app which can detect if I enter or leave a region. Each region (lets say a building) has a BLE Beacon in advertising mode. I do know the mac adressess of the beacons. The app shall run in background and shall be energy efficient. It is not important to recognize the region immediately, but a window of 5 minutes would be sufficient.
On http://developer.android.com/guide/topics/connectivity/bluetooth-le.html its said that you should not "scan on a loop" but is there any other way to realize region enter/leave events?
Also I am bit confused about UUIDs, Services and connections. Is it correct that these issues are NOT relevant to my question?
- As far as i understand from the Bluetooth specification a beacon can only handle one connection. So my app should not actually connect to any beacons if I am only interested if the beacon is nearby because connecting will stop the beacon to advertise and so other devices wont see it anymore. Is this correct?
Related questions
What i want to know seems to be a common question:
- Creating background services for Bluetooth low energy on Android
- How do Android and iOS scan for Bluetooth beacons without battery issues?
- Bluetooth Low Energy Android - Search in Background
but most of the answers are regarding the "Android iBeacon Library", which I don't want to use.