Android : Permissions check for BLE [closed]

Google made Android more strict by adding the new BLUETOOTH_CONNECT and BLUETOOTH_SCAN permissions. You will get SecurityException in runtime if you attempt to access any BLE API that requires these permissions. So we need to check the permissions in the activity which is set to android.intent.action.MAIN in the manifest file. I call that as MainActivity. … Read more

How many devices we can pair via Bluetooth of BLE to Android?

A search of the Android Bluetooth Firmware source shows the following: Max concurrent active synchronous connections (BTA_GATTC_CONN_MAX): 4 on Android 4.3 7 on Android 4.4+ Max concurrent active notifications (BTA_GATTC_NOTIF_REG_MAX): 4 on Android 4.3 7 on Android 4.4 15 on Android 5.0+ As a comparison my experience with iOS is that 8 devices can be … Read more

Does BluetoothLeAdvertiser work on a Nexus 5 with Android 5.0?

Unfortunately, the official answer from Google is no, the Nexus 5 no longer supports advertising. We introduced BLE peripheral mode in Android 5.0 Lollipop. Nexus 6 and Nexus 9 are the first two production Nexus devices that support BLE peripheral mode. Due to hardware chipset dependency, older Nexus devices (4/5/7) will not have access to … Read more

Is the native Android BLE implementation synchronous in nature?

Samsung recently published a “migration”-document on the same page I linked in my question. They exactly answer my question while comparing the new native BLE API with the Samsung BLE API: The synchronous nature of the stack and F/W hasn’t been affected. That is, if we call for example, writeCharacteristic for a particular characteristic, if … Read more