Hey all,
I’m having some troubles using threads and ranging in my app.
beaconManager.setRangingListener(new BeaconManager.RangingListener() {
@Override
public void onBeaconsDiscovered(Region region, List<Beacon> list) {
beaconsFound(list);
}
});
Does the code in onBeaconsDiscovered run on a separate thread? If I want to use an AsyncTask
in my code, is it better to open a new thread to each beacon discovered or to send the whole discovered list to the same AsyncTask? Known that the same beacons are discovered multiple times in a short period of time…