alt236/Bluetooth-LE-Library---Android

Android 6.0 not in LeScanCallback

Closed this issue · 7 comments

In Android 6.0 appear information log below:
D/BluetoothAdapter: startLeScan(): null
And the program not in LeScanCallback (onLeScan), what's wrong with it ?
thanks~

Have you granted your app the runtime permissions?

Yes
2016/7/4 下午5:35於 "Alexandros Schillings" notifications@github.com寫道:

Have you granted your app the runtime permissions?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#17 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AGQyXFEAZWQo9zFX6qcG_6noCINL2lVQks5qSNPQgaJpZM4JEMWp
.

I have set in the AndroidManifest.xml
and bluetooth permission is not dangerous permission, and it can not be granted in runtime permission

Good point.

Does the sample app work for you?

Also, what device are you using? Does it support BTLE?

The app in play store is OK, my device is SONY Z5
I think it is support BTLE

@WeberHsu Android 6.0 need to increase the "ACCESS_COARSE_LOCATION" permissions, and obtained the permission to ensure it

@wdh-1025 Good point. That is the solution for 6.0+.