蓝牙设备可能是手机、电脑、耳机、游戏手柄等,我们可以调用如下方法,获取大的设备分类:
bluetoothDevice.getBluetoothClass().getMajorDeviceClass()
返回的设备类型有:
/**
* Defines all major device class constants.
* <p>See {@link BluetoothClass.Device} for minor classes.
*/
public static
蓝牙设备可能是手机、电脑、耳机、游戏手柄等,我们可以调用如下方法,获取大的设备分类:
bluetoothDevice.getBluetoothClass().getMajorDeviceClass()
返回的设备类型有:
/**
* Defines all major device class constants.
* <p>See {@link BluetoothClass.Device} for minor classes.
*/
public static