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

Native Development

Reply
Developer
Posts: 1,621
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Invoke Picture App help

So in the photobomber example there is share button which supposely invoke the picture app and it doesn't work.

 

The code from the example.

 

InvokeRequest invokeRequest;
invokeRequest.setAction("bb.action.VIEW");
invokeRequest.setTarget("sys.picture.card.previewer");
invokeRequest.setMimeType("images/jpeg");
invokeRequest.setUri(QString("%1%2").arg("photos:").arg(fileName.remove(0,7)));

InvokeManager invokeManager;
invokeManager.invoke(invokeRequest);

anyone have working code to invoke the picture app?