Bluetooth Le Can't Find Any Device On Android 6.0
I am building an app that receives data from bluetooth device and is fully functional on a 4.4.4 android smartphone. But when I try it on version 6.0 devices it does not find the
Solution 1:
Yes you have to ask and be granted those permissions or else nothing will show up under runtime. But what i can see is that you are missing some dependencies on AppCompat
Add this to your build.gradle
file
implementation com.android.support:appcompat-v7:28.0.0
And also don't use implicit version number this will/can cause unpredicted errors because it can upgrade whenever without you knowing and introducing a nasty bug.
Set it always with a explicit number
'com.android.support:support-v4:28.0'
Solution 2:
this sounds like you forgot to ask actively for the permission by an dialog: https://developer.radiusnetworks.com/2015/09/29/is-your-beacon-app-ready-for-android-6.html
Original idea found here: Bluetooth Low Energy startScan on Android 6.0 does not find devices
Greets
Post a Comment for "Bluetooth Le Can't Find Any Device On Android 6.0"