public override void OnCreate() { base.OnCreate (); _iBeaconManager = IBeaconManager.GetInstanceForApplication (this); _iBeaconManager.SetForegroundScanPeriod (2000); _iBeaconManager.SetForegroundBetweenScanPeriod (2500); _rangeNotifier = new RangeNotifier (); _rangingRegion = new Region (monkeyId, UUID, null, null); _iBeaconManager.Bind (this); _rangeNotifier.DidRangeBeaconsInRegionComplete += RangingBeaconsInRegion; }