Hi and Thanks for your Help,
so you mean something like this?
Code:
Object first = null, last = null, temp = null;
Enumeration e = (Enumeration) ((DataElement) serviceRecord.getAttributeValue(0x0001)).getValue();
while (e.hasMoreElements()) {
if (temp == null) {
first = e.nextElement();
temp = first;
}
else
temp = e.nextElement();
}
last = temp;
RuntimeObjects.agent.searchServices(null,
new UUID[] { new UUID((String) ((DataElement) last).getValue(),false ) },RemoteDevice, new BluetoothPrinterDiscoveryListener());
I'm still looking for the error ... works neighter with first nor last... .
We did a copy and paste with the first and last UUID´s in the list like this...
new UUID[] { new UUID("11010000100080000084559fb34fd",false) }
But we still hit that same NPException.