无论如何以编程方式获取蓝牙配置文件状态?
答案 0 :(得分:0)
试试这个:
BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if (mBluetoothAdapter == null) {
// Device does not support Bluetooth
System.out.println("Device does not support Bluetooth");
} else {
System.out.println("Status " + mBluetoothAdapter.isEnabled());
}
基于:http://developer.android.com/guide/topics/connectivity/bluetooth.html