Wish IsInitialized for BleManager2

OliverA

Expert
Licensed User
Longtime User
BleManager2's Initialize routine creates a new broadcast receiver per call. Believe it or not, after some time, this can lead to
AndroidRuntime: java.lang.IllegalStateException: Too many receivers, total of 1000, registered for pid: 9760
issues. I can circumvent the issue by checking the IsInitialized routine and only initializing a manager if needed. Yes, for now I can just have a separate flag, but checking IsInitialized would just be standard B4X convention.
 
Top