In windows, I communicate fine with my bluetooth connected devices. I get the name and address of the device ok. But, the line
UUID[] uuids = device.getUUIDs();
… produces this error:
The method getUUIDs() is undefined for the type RemoteDevice
Code sample
import javax.bluetooth.DiscoveryAgent;
import javax.bluetooth.LocalDevice;
import javax.bluetooth.RemoteDevice;
import javax.bluetooth.UUID;
//...
LocalDevice localDevice = LocalDevice.getLocalDevice();
DiscoveryAgent discoveryAgent = localDevice.getDiscoveryAgent();
RemoteDevice[] devices = discoveryAgent.retrieveDevices(DiscoveryAgent.PREKNOWN);
UUID[] uuids = device.getUUIDs();
According to the documentation, the RemoteDevice class does not have a
getUUIDs()method. I assume that in your code thedeviceis a single member of thedevicesarray, otherwise there might still be an error in your code.