Skip to content
Advertisement

How can I check bluetooth LE ScanResult with android ble scanning app?

Hello I’m working on simple BLE scanning app with java but it doesn’t work.

I referred https://github.com/benlc/ble, android developers and completed the source code.

JavaScript

also permission is added in manifest file

JavaScript

I want to know why it isn’t work and how to make it work. I checked ScanResult with toast message but it does not show any result…

Advertisement

Answer

That’s a very old example. Nowadays Android needs runtime permissions for ACCESS_FINE_LOCATION. See https://developer.android.com/training/permissions/requesting for a tutorial.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement