ble-starter-android icon indicating copy to clipboard operation
ble-starter-android copied to clipboard

Companion project for the Punch Through blog post "The Ultimate Guide to Android Bluetooth Low Energy"

Results 12 ble-starter-android issues
Sort by recently updated
recently updated
newest added

Hi I just upgraded my phone to Android 12 and my application stopped working due to the runtime permission and enable ble intent etc. I just wanted to know if...

Hi, I'm getting error 133 to connect a BLE sensor (Temperature and Humidity). I have executed : device.connectGatt(context, false, callback) and device.connectGatt(context, false, callback,2). 2= BluetoothDevice.TRANSPORT_LE but the problem continues....

https://github.com/PunchThrough/ble-starter-android/blob/master/app/src/main/java/com/punchthrough/blestarterappandroid/ble/ConnectionManager.kt It seems like if a connection fail event happens (for example, the status field is not success and there was a failure while establishing the connection) - the teardownConnection(...)...

bug
help wanted

java.util.ConcurrentModificationException getting some time after requestMtu

bug
info needed

Changing one line ConnectionManager.kt:225 `device.connectGatt(context, false, callback)` to `device.connectGatt(context, false, callback, BluetoothDevice.TRANSPORT_LE)` solves the problem (although requires to target SDK at least 23)

enhancement

How can I change priority? Tried to use gatt.requestConnectionPriority(1) after services discovered and then stop receiving messages from BLE.

help wanted
question

Here is the error i am getting in my logcat while running on tablet. 2021-05-11 13:20:22.073 24893-24893/? I/arterappandroi: Late-enabling -Xcheck:jni 2021-05-11 13:20:22.104 24893-24893/? E/arterappandroi: Unknown bits set in runtime_flags: 0x8000...

enhancement
good first issue

Hi , I tried the application on my android device , and connect it to my ESP32 via BLE. I was sending notifications (max 400bytes ) with an MTU of...

question

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.halosleep.bassinest, PID: 20612 java.lang.IllegalArgumentException: Navigation action/destination com.halosleep.bassinest:id/action_connectionLoadingFragment_to_errorFragment cannot be found from the current destination Destination(com.halosleep.bassinest:id/bleScanFragment) label=fragment_ble_scan class=com.halosleep.bassinest.ui.activity.wifi.wifiFragments.BleScanFragment at androidx.navigation.NavController.navigate(NavController.kt:1540) at androidx.navigation.NavController.navigate(NavController.kt:1472) at androidx.navigation.NavController.navigate(NavController.kt:1930) at com.halosleep.bassinest.ui.activity.wifi.wifiFragments.BleScanFragment$moveToErrorPage$1.invokeSuspend(BleScanFragment.kt:464)...

This app is crashing on android 12 and ask for Bluetooth permissions which is already mentioned in Manifest file.