OliverA Expert Licensed User Longtime User Jan 15, 2021 #1 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 Click to expand... 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.
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 Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Jan 17, 2021 #2 BLE2 v1.39 adds IsInitialized method. Will be included in the next version of B4A. Attachments BLE2.zip BLE2.zip 14.4 KB · Views: 642