I’m trying to start the ranging operation from within an android service. I get the following exception when I call the connect method of BeaconManager
android.app.ServiceConnectionLeaked: Service com.honeywell.beaconzone.RelayZoneDataService has leaked ServiceConnection com.estimote.sdk.BeaconManager$InternalServiceConnection@426034c8 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:970)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:864)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1569)
at android.app.ContextImpl.bindService(ContextImpl.java:1552)
at android.content.ContextWrapper.bindService(ContextWrapper.java:517)
at com.estimote.sdk.BeaconManager.connect(BeaconManager.java:223)
at com.honeywell.beaconzone.RelayZoneDataService.startRanging(RelayZoneDataService.java:187)
at com.honeywell.beaconzone.RelayZoneDataService.onHandleIntent(RelayZoneDataService.java:152)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
Should I be defining something in my manifest file? Is Ranging allowed from within an Android service?
What does this exception mean?