Bluetooth discovery on Android - is there a way to know if there is a bluetooth device nearby?

StackOverflow https://stackoverflow.com/questions/8814372

  •  15-04-2021
  •  | 
  •  

Question

I would like to show some kind of alert/notification if there is a bluetooth device nearby. At the moment my solution is to do the discovery every minute, but is there a more sophisticated way? (Like a BroadcastReceiver)

Was it helpful?

Solution

No there isn't.. You will have to perform discovery in your app or manually to discover devices

OTHER TIPS

the Documentation can help you.

Agree with Dennis. Unless you perform device discovery from your app, you won't be able to know the devices near to you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top