connectivity-samples
connectivity-samples copied to clipboard
Logical mistake
In file connectivity-samples/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/DeviceControlActivity.java In line 129: if ((charaProp | BluetoothGattCharacteristic.PROPERTY_READ) > 0) { and line 139: if ((charaProp | BluetoothGattCharacteristic.PROPERTY_NOTIFY) > 0) { there must be a bitwise "and" &: Bitwise "or" will always be true Regards.
It is very sad that a simple bug like this identified 6 years ago is still not fixed. https://github.com/android/connectivity-samples/issues/46