iBeacon Ranging Service Not Returning any Beacons (Part 2)
问题 My code has now reached checkpoint 1 and 2. However, it is only detecting the beacon once. I want it to keep receiving the location of the beacon (distance) every five seconds. How can I implement this? Thanks again public class RangingService extends Service implements BeaconConsumer { private BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this); Handler handler; String b = ""; @Override public IBinder onBind(Intent arg0) { return null; } @Override public void onStart