Proper way to find if a paired Android Bluetooth device is in range?

后端 未结 2 1038
暗喜
暗喜 2021-02-19 09:46

I\'m suppose to write an application that will act as the bluetooth client. What I\'m trying to do is figure out is what would be the best way to figure out if the specific dev

2条回答
  •  失恋的感觉
    2021-02-19 10:01

    You can follow below way :

    1. Get paired devices list from bluetooth adapter
    2. Start discovery
    3. When a device is found let's say Device A, you can check if Device A is there in paired devices list or not. If Device A is one of the paired device, means it is a paired available device in range.

提交回复
热议问题