onEnteredRegion和onBeaconsDiscovered有什么区别,
以下代码有问题吗,怎么监测不到设备进入区域
beaconManager.setMonitoringListener(new MonitoringListener() {
@Override
public void onEnteredRegion(BRTRegion arg0, List<BRTBeacon> arg1) {
//postNotification("进入感应区域");
Toast.makeText(AllDemosActivity.this, "进入感应区域", Toast.LENGTH_LONG).show();
}
@Override
public void onExitedRegion(BRTRegion arg0, List<BRTBeacon> arg1) {
//postNotification("离开感应区域");
Toast.makeText(AllDemosActivity.this, "离开感应区域", Toast.LENGTH_LONG).show();
}
});