Estimote / Android-Fleet-Management-SDK

Estimote Fleet Management SDK for Android
https://developer.estimote.com
MIT License
836 stars 451 forks source link

beaconManager.disconnect() throws ConcurrentModificationException #13

Closed mohitb117 closed 10 years ago

mohitb117 commented 10 years ago

beaconManager.disconnect() throws ConcurrentModificationException ! The Beacon Manager seems to intermittently throw the ConcurrentModificationException , i have a few Monitoring Listeners patched up but when i call disconnect on the BeaconManager instance thats when the exception occurs.

wiktor commented 10 years ago

Can you provide me a full stack trace?

How can you have multiple monitoring listeners attached? You can only add one monitoring listener.

wiktor commented 10 years ago

Ok, got it.

mohitb117 commented 10 years ago

I have three regions created ,identified by the Mac address of the beacons and started to monitor the Regions by a single Monitoring Listener Delegated to my application.

wiktor commented 10 years ago

Please for now just monitor all beacons and do filtering in your app's code.

mohitb117 commented 10 years ago

The problem is the disconnect method does not stop the bluetooth receiver to stop scanning for beacons and causes on a few occasions to make my bluetooth settings to be disabled permanently which is only resolved by rebooting the device

wiktor commented 10 years ago

Yes. Workaround is to monitor single region right now. This region would contain all beacons and filtering in your app. Fix is on they way.

On Mon, Feb 3, 2014 at 10:59 PM, Mohit notifications@github.com wrote:

The problem is the disconnect method does not stop the bluetooth receiver to stop scanning for beacons and causes on a few occasions to make my bluetooth settings to be disabled permanently which is only resolved by rebooting the device

Reply to this email directly or view it on GitHub: https://github.com/Estimote/Android-SDK/issues/13#issuecomment-34005372

wiktor commented 10 years ago

0.3 of the SDK is released.