0

The method didEnterRegion() and didExitRegion() (MonitorNotifier Callback)calls continuously.

How can I prevent?

user2231294
  • 153
  • 1
  • 1
  • 10

2 Answers2

1

This is not typical or expected behavior. Please try running the reference application available here:

https://github.com/AltBeacon/android-beacon-library-reference

See if you get the same behavior. If so, it may be a problem with your beacon or mobile device. If not, it may be an issue with the way your app uses the Android Beacon Library.

davidgyoung
  • 63,876
  • 14
  • 121
  • 204
  • You didn't declare MonitorNotifier Callback in reference application. – user2231294 Jun 26 '15 at 13:51
  • The reference application uses a different class to set up monitoring: `regionBootstrap = new RegionBootstrap(this, region);` This RegionBootstrap automatically configures the callback to be the `this` passed in the argument. It still works the same way under the hood. – davidgyoung Jun 26 '15 at 14:46
  • I suggest simply running the reference app to see if you get the same entry/exit issue. This will tell if it is a code or hardware issue. – davidgyoung Jun 29 '15 at 12:30
  • Ok. I will let you know. – user2231294 Jun 30 '15 at 06:07
0

I would simply try running the reference app to see if you get the same unexpected behavior.

davidgyoung
  • 63,876
  • 14
  • 121
  • 204