How to program a driver for a Bluetooth device for smartphones BB

Hi all

Suppose I have a Bluetooth keyboard that does not have a driver for my OS 6 BB device. I want to program a driver for this keyboard so that when the keyboard and BB Phone are paired, a key on the keyboard event will generate/simulate a key on the phone BB event. By a 'pilot', I mean that any application on the phone from BB which is currently has the focus (or listen to a key event) will receive this key event.

I already have the Protocol documents of the producer of the keyboard which explains how to communicate with the keyboard.

If you have any suggestions, advice, documents on this, please share with me. I have reviewed the Bluetooth Serial Port profile example that comes with the BlackBerry SDK. But it is an application, not a pilot.

Thank you

Tom

Two apps that you have looked at are the Foundation you need.

The other thing you need is the event Injection to put the key in the field that currently has the focus, as if the user has pressed a key.  See this:

http://supportforums.BlackBerry.com/T5/Java-development/event-injection/Ta-p/444735

There is no concept of "Driver" in Blackberry.  You will need to create an Application that starts automatically, but notes or are configured by the user to connect to the keyboard.  After that you just push KeyEvents.  but you nest making it a UiApplication, least initially and the user to see an icon on the screen that they can use to control your app.  It will work all the time.

Once you have worked as a UiApplication, then you can think to making it less obvious.  But to be honest, because you'll probably want the user to be able to set it up, sending you support emails and especially, set up permissions, you will most likely find having a UiApplication with an icon is a useful thing.  Autostart just she.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for