2

I am new to Android development, and have been scanning the boards for a couple of weeks now because I can't find any other bluetooth devices in my location.

I have included permissions for BLUETOOTH, BLUETOOTH ADMIN, and ACCESS_FINE_LOCATION in my Manifest.xml file.

Hardware: REV0.6 Model #: SM-G930V

Youssif Saeed
  • 11,789
  • 4
  • 44
  • 72
Mark Holten
  • 131
  • 1
  • 4

1 Answers1

3

Try to also add ACCESS_BACKGROUD_LOCATION and ACCESS_COARSE_LOCATION to your manifest file. If that doesn't help, check that you can scan for other Android devices using other apps (e.g. nRF Connect) to ensure that there isn't somehow a problem with your hardware.

Some useful links:-

Youssif Saeed
  • 11,789
  • 4
  • 44
  • 72
  • 2
    I just wanted to emphasize that an app has to actively check if the location permission was granted from the user. This is described in 'The Ultimate Guide to Android Bluetooth Low Energy'. Great answer! – Michael Kotzjan Feb 15 '21 at 07:52