I'm trying out the sample with some iBeacons. Everything works as expected in the RangingActivity. I can see all the info about the iBeacon. However, I am trying to modify the didEnterREgion
method of the notifier and I am running into a problem. Even though technically something is "found" when I try to do region.getProximityUuid()
it returns null. I can't figure out a good way to get this info on the first connect? Am I doing something wrong?
Here is a snippet of my modified method:
public void didEnterRegion(Region region) {
logToDisplay("I just saw an iBeacon for the first time!");
String ttag = "calbeaconM";
Log.v(ttag,"proxUUID: " + region.getProximityUuid());
//Log.v(ttag,"distance: " + region.getAccuracy());
Log.v(ttag,"major: " + region.getMajor());
Log.v(ttag,"minor: " + region.getMinor());
//Log.v(ttag,"proximity: " + region.getProximity());
Log.v(ttag,"hash: " + region.hashCode());
//Log.v(ttag,"rssi: " + region.getRssi());
if(region.getProximityUuid() != null){
}
}
and the logcat output:
proxUUID: null
major: null
minor: null
hash: -1975428096
Can't figure out where I am going wrong.