Android蓝牙低能耗-如何访问以前配对的设备?

Android蓝牙低能耗-如何访问以前配对的设备?,android,bluetooth,bluetooth-lowenergy,android-bluetooth,Android,Bluetooth,Bluetooth Lowenergy,Android Bluetooth,我正在开发一款通过蓝牙低能耗连接到设备的Android应用程序 我的问题是,我想不出一种方法来连接我以前连接过的设备。在手机的蓝牙设置中,它将蓝牙设备显示为“已配对”,因此我想从应用程序连接到该设备,以便与之“通话” 有人知道怎么做吗 提前谢谢 您可以从BluetoothAdapter获得绑定设备的列表: Set<BluetoothDevice> devices = myBluetoothAdapter.getBondedDevices(); 您可以从BluetoothAdapte

我正在开发一款通过蓝牙低能耗连接到设备的Android应用程序

我的问题是,我想不出一种方法来连接我以前连接过的设备。在手机的蓝牙设置中,它将蓝牙设备显示为“已配对”,因此我想从应用程序连接到该设备,以便与之“通话”

有人知道怎么做吗


提前谢谢

您可以从BluetoothAdapter获得绑定设备的列表:

Set<BluetoothDevice> devices = myBluetoothAdapter.getBondedDevices();

您可以从BluetoothAdapter获得绑定设备的列表:

Set<BluetoothDevice> devices = myBluetoothAdapter.getBondedDevices();