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: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A
Accepted Solution

Share Image using Native Share .

Hello Guys,

i am using this method to share a text using (Emai, Text Mesasge, BBM and more)

But how can i use it to share photo as well .

actions: [
        InvokeActionItem {
            ActionBar.placement: ActionBarPlacement.OnBar
            query {
                mimeType: "text/plain"
                invokeActionId: "bb.action.SHARE"
            }
            onTriggered: {
              data = myClass.encodeQString("Shared Text") 
            }
        }
]

 Thanks.

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Share Image using Native Share .

Is your question more about mimetype or are you asking if you can send text and a picture at the same time?

The latter is not currently possible.

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Share Image using Native Share .

If it's the first then this page uses pictures as invocation examples...

 

http://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/sending_inv...


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A

Re: Share Image using Native Share .

i need to send text and a picture at the same time
Highlighted
Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A

Re: Share Image using Native Share .

Also itried to do this for images, it did not work, it turend into NFC share only .