06-20-2013 08:15 AM
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_C
ONTENT_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 ?