У меня много uuid Bluetooth, я не знаю, что это значит и какой из них я должен использовать для идентификации устройства в моем приложении.
uuid: 00000110a-0000 -... .
uuid: 00000111f-0000 -....
uuid: 000001112-0000 -....
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
Method getUuidsMethod = null;
ParcelUuid[] uuids = null;
try {
getUuidsMethod = BluetoothAdapter.class.getDeclaredMethod("getUuids", null);
uuids = (ParcelUuid[]) getUuidsMethod.invoke(adapter, null);
} catch (Exception e) {
e.printStackTrace();
}
String s="";
for (ParcelUuid uuid: uuids) {
s=s+"UUID: " + uuid.getUuid().toString()+"\n";
}