views:

61

answers:

1

Can anyone please point me in right direction? I am unable to find suitable or simple tutorial to write a program to connect to two bluetooth enabled already paired blackberry devices. This is new to me. So, finding it hard to understand. I do not want to use any RIM specific API's which require signing the application.

I just need to initiate the connection and connect. No need to transfer any data. The devices will be already paired using bluetooth settings in the phone.

Any help is greatly appreciated.

A: 

Here's a good video tutorial of using Bluetooth on BlackBerry: http://www.blackberry.com/DevMediaLibrary/view.do?name=UsingtheRIMBluetooth

Marc Novakowski
But it uses RIM's API which require me to acquire signing keys and pay $20 to use it in the device?
JPro
Can we use a Midlet in blackberry?
JPro
You can use RIM APIs without a code signing key as long as the classes and methods you use don't have the "Category: signed" in their javadocs.
Marc Novakowski
And yes you can use Midlet on BlackBerry, but obviously you won't be able to use any of RIM's APIs (signed or not)
Marc Novakowski
I am communicating with a bluetooth chip not designed by RIM. Will I be able to communicate with my application from Blackberry to that Bluetooth chip? Will it matter it I use Midlet or RIM specific API's?
JPro
No, it shouldn't matter. If you can use SPP it will greatly simplify your code since you can just treat it like an I/O stream rather than parsing individual packets.
Marc Novakowski
Not sure about SPP. Can you give me some links please?
JPro
For a starter take a look at the javadocs for javax.microedition.io.Connector - just search for "BTSPP"
Marc Novakowski