03-15-2010 02:58 PM
I am trying to run the Bluetooth Demo sample program to transfer data from BB 8900 to BB 9000.
Bluetooth is enabled in both devices. Manually I have paired the devices.
When I run the BluetoothDemo sample program from BB 8900, the program does not recognize BB9000.
//Determine if this BlackBerry model or simulator supports Bluetooth.
// Get the BluetoothSerialPortInfo. Retrieves serial port information for
// the currently paired devices.
_portInfo = BluetoothSerialPort.getSerialPortInfo();
int numServices = _portInfo.length;
System.out.println("No. of devices found: "+numServices);
//Create a MenuItem for each Bluetooth device we can connect to.
for (int count = numServices - 1; count >= 0; --count)
String serviceName = _portInfo[count].getServiceName();
DeviceMenuItem deviceMenuItem = new DeviceMenuItem("Connect to: " +
Any help appreciated.
Solved! Go to Solution.
03-16-2010 12:29 PM
The sample needs to be open and listening for incoming connections when you pair so that the sample's service is exchanged during the handshake process. Have you done that?
03-16-2010 03:22 PM
Thanks Mark for your solution. I was in the impression that, sample application can detect any existing paired devices and will list out them in menu, . I need to pair the devices while the sample application is running.
Looks like I need
1. Run the sample application in 9000, click on Listen for connections (and wait for connection)
2. In 8900, search & add the bluetooth device 9000 to pair them.
3. open sample application in 8900, now I see the BB 9000 in the menu.
4. Click on Connect to BB 9000 to transfer data.
Thanks Mark for your help.
08-22-2011 11:18 AM