I want to display data to the textview from the database when the beacon is detected in specific distance .... the problem is it does not work or does not display anything here's my code ...
public void didRangeBeaconsInRegion(Collection<Beacon> beacons, Region region) {
if (beacons.size() > 0) {
for (Beacon beacon: beacons) {
if(beacon.getDistance() < 0.5){
ddb();
//Call Display data from database
}
Does it has something to do with ranging every second?
Is it possible to display data from the database using didRangeBeaconsInRegion?