Thursday, April 17, 2014

How to get @ @ @ @ Bluetooth device class


Bluetooth devices may be computers, phones, printers, cameras,
Try the getBluetoothClass by BluetoothDevice to judge, but the value obtained from the same category of devices is not the same
I want to list only to find after a certain type of equipment, please enlighten heroes, thank you!
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Top, there are so deserted it ~ ~
Reply:
Specific problems have been solved to achieve
int deviceType = device.getBluetoothClass () getMajorDeviceClass ();.
This value is different for different device types,
For example, computer Bluetooth is 256, phone Bluetooth 512, 1536, etc. Bluetooth printer.

No comments:

Post a Comment