11-28-2012 04:41 PM
Hi boys. I'm working with InvokeActionItem, and i have a little problem.
I want share a file located in data folder of my app. This is my code :
InvokeActionItem *aShare = InvokeActionItem::create(InvokeQuery::create() .mimeType("image/jpg") .uri("file:///accounts/.....myapp/data/myphoto.jpg
") .fileTransferMode(bb::system::FileTransferMode::Co pyReadWrite) .invokeActionId("bb.action.SHARE")).title("Share") ;
but dont work. The image is not displayed at share sheet, bluetooth option ( only the generic "flower" image ).
FileTransferMode not working ?
Is this related with this known issue at release notes ?
6052188 The invoked(const bb::system::InvokeRequest&) signal of the InvokeManager class emits the incorrect signal for setFileTransferMode(FileTransferMode::Type type).
11-29-2012 05:19 PM
Any idea ?
11-30-2012 04:52 PM
Ok, better explain. If i want, for example, preview with a card or external application a image file located inside my app sandbox, I can't.
InvokeRequest iRequest; iRequest.setAction("bb.action.VIEW"); iRequest.setFileTransferMode(FileTransferMode::Cop
yReadWrite); iRequest.setMimeType("image/jpg"); iRequest.setUri("file:///accounts/1000/appdata/mya pp/data/myimage.jpg"); iRequest.setTarget("sys.pictures.card.previewer"); InvokeTargetReply *reply = iManager->invoke(iRequest); reply->setParent(this);
Image previewer card can't display "myimage.jpg".
InvokeRequest::setFileTransferMode() would must copy the file in card's inbox, but has no effect.
11-30-2012 05:14 PM