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
Visitor
operand87
Posts: 1
Registered: ‎06-20-2013
My Device: Bold 9700

Send a file by bluetooth using Invocation

Hi, I am trying send a file by bluetooth for other devices through my application, using Invocation class from API 5.0:

 

Invocation invocation = new Invocation("file:///store/home/user/imagem.jpg", "image/jpg", BlackBerryContentHandler.ID_SEND_USING_BLUETOOTH_CONTENT_HANDLER, true, ContentHandler.ACTION_SEND);

Registry reg = Registry.getRegistry( Program.class.getName());
boolean result = reg.invoke(invocation);

 

When I run my code on BlackBerry OS 5.0, it happens:

 

- enable bluetooth

- show paired devices

- I choose 1 device and nothing happens after this...

 

In BB OS 6.0 and 7.0, nothing happens...

 

OBS: my app has all permissions.

 

I don't found examples from this resource of API, anyone know if/how this invocation works for bluetooth ?

 

 

Please use plain text.