01-06-2013 11:18 PM
Hey there BB10 dev device owner, can you quickly check and see if it is possible to copy and paste a picture/image into a BBM, text, or email message?
I have verified via the clipboard APIs that I am successfully loading an image onto the clipboard, but I am making a big assumption that the user has the ability to share it by pasting it into a message. If this assumption is false, I need to start down the Messages API path.
Secondly, how do I get a dev device? Is a PlayBook similar enough for me to test this on in a store?
Thanks for the help.
Kurt
Solved! Go to Solution.
01-10-2013 03:40 PM - edited 01-10-2013 03:42 PM
This isn't supported. You can use the invocation framework to share images over email, BBM, SMS, etc...
Details are here:
Here's an example that does it: Invoking core applications
We'll have more core applications added to that list over the next week.
InvokeActionItem {
title: "Share Image Over BBM"
query {
invokeActionId: "bb.action.SHARE"
uri: "file:///accounts/1000/shared/photos/image.png"
}
That will send the image as an attachment.
01-10-2013 05:26 PM
01-11-2013 02:21 PM - edited 01-17-2013 12:40 PM
That's expected. Other applications don't have access to your application's sandbox (install) directory. Remember that when doing this you are actually invoking another application, running outside of your application's sandbox.
So you can either temporarily copy it to the shared folder or use a QByteArray like you are doing.
Clarified in my next post.
01-17-2013 12:40 PM
I should clarify here. Some you can invoke using paths to some directories in your application. Basically writable locations, like data are OK. The invocation framework will take care of copying the file from your application's sandbox to the other application's sandbox. You cannot do this for write protected directories, like appdata.