Hi,
i've tried this code here:
Code:
import net.rim.blackberry.api.options.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.bluetooth.*;
import net.rim.device.api.system.*;
import net.rim.device.api.bluetooth.BluetoothSerialPortInfo;
/*
...
*/
BluetoothSerialPortInfo btinfo[] = BluetoothSerialPort.getSerialPortInfo();
if(btinfo != null && btinfo.length > 0) {
btdevices = new String[btinfo.length];
for(int i=0; i < btinfo.length; ++i) {
btdevices[i] = btinfo[i].getDeviceName();
}
} else {
btdevices = new String[1];
btdevices[0] = "no devices";
}
so now i get this little error message here:
Quote:
|
Originally Posted by error
cannot find symbol
symbol : method getDeviceName()
location: class net.rim.device.api.bluetooth.BluetoothSerialPortIn fo
btdevices[i] = btinfo[i].getDeviceName();
|
i'm using the JDE vers. 4.0.
so why get i this stupid errormessage?
thanks hibbert