如何获得蓝牙设置值

问题描述:

这比我想象的要困难。在android的设置中,用户可以选择一个蓝牙设备连接到手机。我怎样才能得到设定值?如何获得蓝牙设置值

我知道我可以获得配对设备的列表并尝试使用代码连接每个设备。但我想知道是否有其他方法来获得设定值。谢谢。

获取默认蓝牙适配器对象并探索它如何?

获取默认的蓝牙适配器:

BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); 

API来探索你能与BluetoothAdapter对象做:http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html

请参阅本URL如果你可以在任何帮助

这里Simple Android and Java Bluetooth Applicationsource code也。