Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Developer
Posts: 2
Registered: ‎03-13-2009
My Device: Not Specified

Bluetooth: service search on Blackberries



I'm developing an application on JSR-82, using Bluecove (not on Blackberry) on Windows stack.


When using DiscoveryAgent.searchServices(), I expected to have some services discovered on Blackberry, but I always have no results. I've tried to search for the availability of SPP, OBEX and others, but no luck.


Is this the expected behavior?

I have tested that the same piece of code can find services on phones of another manufacturers.


Pairing the Blackberry with other phones, I'm able to exchange data without problems. I'm able also to do a direct SPP connection through Connector.open("btspp://112233445566:1"), but I had no success on pushing a file this way.


I need the service search to know which mechanism should I use to push files into a Blackberry device.

I'm testing on a Blackberry 8110.


Thanks for any hint on this,



Posts: 238
Registered: ‎08-26-2008
My Device: Not Specified

Re: Bluetooth: service search on Blackberries



search for 0x1101 as bluetooth serial port profile.

If you cannot connect to device, it maybe depends on services available from device per default. Since

4.5 you cann disable device services in options menu of bluetooth connection. Then a connection should be



UUID uuid = new UUID(0x1101);
String url = "btspp://localhost:" + uuid + ";name=abc;authenticate=false;master=false";
iNotifier = (StreamConnectionNotifier) Connector.open(url);
iStreamConnection = iNotifier.acceptAndOpen();
iOutputStream = iStreamConnection.openOutputStream();
iInputStream = iStreamConnection.openInputStream();




PS: BTW: A obex file transfer between a bb and another device vendor didn't ever succeed for me either!!

New Developer
Posts: 2
Registered: ‎03-13-2009
My Device: Not Specified

Re: Bluetooth: service search on Blackberries

Hi Jochen, thanks for replying.


I've done a service search for SPP on the BlackBerry, but the service is not found.

Although, I've searched for DUN and it's found succesfully.


On the phone's Bluetooth menu the Serial Port Profile is not listed as service, just the following: headset, handsfree, desktop connectivity, wireless bypass, dial-up networking, audio source, a/v remote control.


Would it be due an operator's restriction?


Although searching for the service returns no results, it is possible to connect directly, but I'm having no success on doing OBEX over SPP...


I can send data via OutputStream, but no data is returned from InputStream.

BlackBerry Development Advisor
Posts: 15,888
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Bluetooth: service search on Blackberries

In order for the BlackBerry handheld to advertise SPP support to discovery agents an application must be listening for incoming SPP connections (waiting on incoming connections).  If this is not the case SPP will not be listed as a supported service due to the fact that there are no applications running that support that type of connection.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Developer
Posts: 9
Registered: ‎07-16-2009
My Device: Not Specified

Re: Bluetooth: service search on Blackberries



I have code that is the same as what jhaehnle posted (acceptOpen listens for incoming SPP connections) and the service is not advertised. I am using BB 8310. Do you know why this could be?