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
New Developer
Posts: 29
Registered: ‎08-21-2013
My Device: Q10
My Carrier: *

Invoke Picture Editor Card error!! (format not supported)

Hi 
I'm trying to invoke picture editor card with c++ code 

    bb::system::InvokeRequest cardRequest;
    cardRequest.setTarget("sys.pictureeditor.cardeditor"); //
    cardRequest.setAction("bb.action.EDIT");
//the Uri only such as example 
    cardRequest.setUri("assest///1.png");
    cardRequest.setFileTransferMode(bb::system::FileTransferMode::CopyReadWrite);
    cardRequest.setMimeType("image/png");
    mInvokeManager->invoke(cardRequest);

 And this error was always there 
I tried multiple ways of setting URI such as using a picture from assest file or a picture picked up from device "file//"+selectedFile[0]

The error
IMG_20140316_145014.png

Wish you'll help me with that error , thank you








New Developer
Posts: 29
Registered: ‎08-21-2013
My Device: Q10
My Carrier: *

Re: Invoke Picture Editor Card error!! (format not supported)

up 

any help please 

 

Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Invoke Picture Editor Card error!! (format not supported)

Hi mossa210,

 

Are you still seeing this issue? If yes, checkout this link which has an example implementation of invoking the picture editor app from C++:

 

https://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/picture_ed...

 

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker