I hope can help me,
I am developing an Android App, that require to connect with Bluetooth devices, like Scanner and Printer, currently I can list all Paired devices, but i want to know if the paired device is a Printer, Scanner, Mobile, etc.
There is some way to know the kind of bluetooth device paired?
解决方案
In short,
Yes you can. You
can do this by using the UUID of the device. If you know the UUID of a device you can match them up from the reported UUID and know which paired device is what.
Something like this:
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
Method getUuidsMethod = BluetoothAdapter.class.getDeclaredMethod("getUuids", null);
ParcelUuid[] uuids = (ParcelUuid[]) getUuidsMethod.invoke(adapter, null);
Now simply compare the retrieved UUID to the devices known UUID( online or on the box).
If they are a match you know what device it is.
Note: most common UUID (scanners, printers, Mice) have the generic UUID 0001101-0000-1000-8000-00805F9B34FB
Read about the getUUID() method, paracable method , Method java class and finally Java.util.UUID.