Piotr Czarnołęski Piotr Czarnołęski - 1 year ago 188
Android Question

AltBeacon Android Library - Adjust variation in time

according to official Android Beacon Library documentation at https://altbeacon.github.io/android-beacon-library/distance_vs_time.html - the averaging time is adjustable, however I found it impossible (so far) to change the variation from 20 seconds (default) to 5 seconds, using code provided:


I'm creating BeaconManager object like so (for Eddystone beacons ranging):

BeaconManager beaconManager = BeaconManager.getInstanceForApplication(getApplicationContext());
beaconManager.getBeaconParsers().add(new BeaconParser().

I've tried putting the code with the adjustments from the documentation just before BeaconManager instantialization, then tried again, just after it. It does not work in both cases. Did anyone run into similar issue?

Piotr Czarnołęski

Answer Source

This is supposed to work, but it looks like there may be a bug. Try calling:


And see if that works for you.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download