onEnteredRegion & onExitedRegion called a minute apart

App:

Estimote Version: Im running version 0.10.7 “The one with the Bugfixes” #FriendsFans
enableDebugLogging: true
setBackgroundScanPeriod: estimote default
Beacon range: 70mt max (and its sitting on my desk with all the testing phones in the same desk.
Beacon OS: A3.2.0 **Hardware Revision:**D3.4
Advertising interval: 427ms

Problem:
This is happening on a Sony Xperia M2 dual and Samsung Galaxy S5, same results in both phones, about 40 seconds apart from enter and exit.

I am running the same code in my Samsung Galaxy S6, and its running fine, it does not exit the region unless i move away or flip the beacon over

Logs:

07-04 17:11:50.824 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: exited
07-04 17:11:50.834 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:11:51.174 20804-20804/roneskinder.x111 D/EstimoteSDK: com.estimote.sdk.cloud.internal.AnalyticsManager$1.success:200 Sent 3 events for analytics.
07-04 17:11:52.674 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: startRanging
07-04 17:11:52.674 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:11:53.734 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: onBeaconsDiscovered
07-04 17:11:53.734 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: [Beacon{macAddress=[D1:3E:E0:E0:82:54], proximityUUID=049494bf-9a50-42c7-9573-61c46496c5b2, major=1002, minor=6, measuredPower=-60, rssi=-60}]
07-04 17:11:53.754 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:12:34.454 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: exited
07-04 17:12:34.454 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:12:34.514 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: startRanging
07-04 17:12:34.524 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:12:35.564 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: onBeaconsDiscovered
07-04 17:12:35.564 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: [Beacon{macAddress=[D1:3E:E0:E0:82:54], proximityUUID=049494bf-9a50-42c7-9573-61c46496c5b2, major=1002, minor=6, measuredPower=-60, rssi=-61}]
07-04 17:12:35.604 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:12:37.144 20804-20804/roneskinder.x111 D/EstimoteSDK: com.estimote.sdk.cloud.internal.AnalyticsManager$1.success:200 Sent 3 events for analytics.
07-04 17:13:15.824 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: exited
07-04 17:13:15.834 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:13:15.964 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: startRanging
07-04 17:13:15.974 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:13:16.994 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: onBeaconsDiscovered
07-04 17:13:16.994 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: [Beacon{macAddress=[D1:3E:E0:E0:82:54], proximityUUID=049494bf-9a50-42c7-9573-61c46496c5b2, major=1002, minor=6, measuredPower=-60, rssi=-62}]
07-04 17:13:17.014 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:13:18.624 20804-20804/roneskinder.x111 D/EstimoteSDK: com.estimote.sdk.cloud.internal.AnalyticsManager$1.success:200 Sent 3 events for analytics.
07-04 17:14:10.314 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: exited
07-04 17:14:10.314 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:14:10.964 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: startRanging
07-04 17:14:10.964 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:14:12.004 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: onBeaconsDiscovered
07-04 17:14:12.014 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: [Beacon{macAddress=[D1:3E:E0:E0:82:54], proximityUUID=049494bf-9a50-42c7-9573-61c46496c5b2, major=1002, minor=6, measuredPower=-60, rssi=-54}]
07-04 17:14:12.024 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:14:13.194 20804-20804/roneskinder.x111 D/EstimoteSDK: com.estimote.sdk.cloud.internal.AnalyticsManager$1.success:200 Sent 3 events for analytics.
07-04 17:14:52.114 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: exited
07-04 17:14:52.124 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:14:54.554 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: startRanging
07-04 17:14:54.554 20804-20930/roneskinder.x111 E/EstimoteSDK: com.estimote.sdk.SystemRequirementsHelper.isForegroundApp:237 Checking if app is in foreground stopped working. Please notify Estimote at contact@estimote.com.
07-04 17:14:55.214 20804-20804/roneskinder.x111 D/EstimoteSDK: com.estimote.sdk.cloud.internal.AnalyticsManager$1.success:200 Sent 3 events for analytics.
07-04 17:14:55.444 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: onBeaconsDiscovered
07-04 17:14:55.454 20804-20804/roneskinder.x111 D/roneskinder.x111.estimote_monitor.BeaconsMonitoringService: [Beacon{macAddress=[D1:3E:E0:E0:82:54], proximityUUID=049494bf-9a50-42c7-9573-61c46496c5b2, major=1002, minor=6, measuredPower=-60, rssi=-59}]

We describe this problem in great detail here:

https://github.com/Estimote/Android-SDK/blob/master/DOC_monitoring_scanning.md#dealing-with-many-onexitonenter-events

Long story short, some Android devices are simply better / more responsive in detecting beacons, and some will consistently “lose” the beacon signal. Can you try further reducing adv interval, see if it helps, and also playing with the backgroundScanPeriod and exitExpiration (maybe increase them a little bit), see if that helps?