I wrote my own little BLE scan service, which runs through the alarm every 3-5 seconds. It scans for 1.1 seconds to get beacons around it, and then transforms the RSSI signal into rough proximity.
Now I'm looking at the iBeacon service for Radius Networks for Android, but I'm wondering how I could implement the same background scan.
For example: I want scannign beacons to run annd in the background and receive Intents in the broadcast receiver to decide what I am doing with the verified beacons.
Are there any soem examples and is there a count of the amount of battery consumed?
source share