Welcome!

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

Reply
New Developer
LtSolo
Posts: 36
Registered: ‎08-04-2008
My Device: Curve 9000
Accepted Solution

Bluetooth application development

Hello,   I need to develop an application that communicates with other Blackbery devices over bluetooth. I did this previously on other mobile phones over JSR82 and now need to get the app blackberry specific. Questions are:

  1. Is it possible to send/receive data (in any way) to/from another device if this device was not paired? 
  2. Can I somehow debug an application with bluetooth functionality. I says that it is Secure API and refuses to run this.
  3. Is it possible to send data through OBEX? I need to send VCARDs.

 Thanks for assistance.

Andrey Zharkikh
Project Manager, Axmor Software
BlackBerry Development Advisor
MSohm
Posts: 14,859
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Bluetooth application development

1.  No.

2.  Do you mean in the BlackBerry Simulator?  This can be done with a Casira board.  Otherwise you can debug your application on a real BlackBerry by connecting it to your PC and select Debug, Attach To, Handheld, your PIN in the BlackBerry JDE.

3.  Yes, OBEX is supported in BlackBerry handheld software version 4.2.1 and higher.  The link below explains this further.

 

What Is - Bluetooth support on BlackBerry devices
Article Number: DB-00465

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800441/What_Is...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
LtSolo
Posts: 36
Registered: ‎08-04-2008
My Device: Curve 9000

Re: Bluetooth application development

Thanks!
Andrey Zharkikh
Project Manager, Axmor Software
New Developer
arun_czur
Posts: 4
Registered: ‎10-16-2008
My Device: Not Specified

Re: Bluetooth application development

Hi

 

I am using a handheld blackberry to debug my application, but i think even to debug the application it needs to be signed in.

Am getting an exception in the debugger and when i stop debugging , it displays messeage in BB, that the api is secure.

is there any workaround to just run the application in debug mode without signing, i just need to verify the bluetooth PC application

with a sample application in BB. kindly suggest.

 

Thanks and regards

Arun

New Developer
LtSolo
Posts: 36
Registered: ‎08-04-2008
My Device: Curve 9000

Re: Bluetooth application development

I dont think you can do this without signing. Signing is inexpensive process. Once you order signing keys ($20) and receive that usually happens in 2-3 days you can sign then unlimited number of BB applications (actually 2147483648 times).

Andrey Zharkikh
Project Manager, Axmor Software
New Developer
arun_czur
Posts: 4
Registered: ‎10-16-2008
My Device: Not Specified

Re: Bluetooth application development

Hi

 

Tnaks for the info, i was under the impression that it costs 100$ for each application signing.:smileytongue:

New Developer
LtSolo
Posts: 36
Registered: ‎08-04-2008
My Device: Curve 9000

Re: Bluetooth application development

Yes! This is what not clear about BB signing. On various Web sites it is said that it costs 100 for each event, but actually 20 for unlim. :smileyhappy:)))))))))
Andrey Zharkikh
Project Manager, Axmor Software
Developer
Bottomfish
Posts: 98
Registered: ‎01-06-2009
My Device: Pearl 8110

Re: Bluetooth application development

Hi, Mark.

 

i am playing with javax.bluetooth/javax.obex apis

and i am experiencing lockup when i use a while loop

to wait for service discovery to finish. this will freeze

the curve (4.2.2.xxx). and when i take out the battery

and try to run my program again, the curve does not

run it. so my question is, does the OS blacklist

programs that crash it?

 

There is OBEX Object Push and OBEX File Transfer.

Does the blackberry support the latter for file browse?

 

 

BlackBerry Development Advisor
MSohm
Posts: 14,859
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Bluetooth application development

No, a BlackBerry does not blacklist applications that have crashed.  I recommend connecting the BlackBerry handheld to the BlackBerry JDE to step through your application.  To do so connect it via USB, and from the BlackBerry JDE click on the Debug menu, Attach To, Handheld and then choose your BlackBerry PIN.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
peter_strange
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

Re: Bluetooth application development

The following statement worries me

"a while loop to wait for service discovery to finish".

I suspect the while loop is running on the Main Event Thread, and this is why you are seeing the device 'lockup'.  I suspect the best approach would to have some sort of event that is driven when the discovery completes, rather than have a while loop that waits for it.