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
Developer
Posts: 174
Registered: ‎03-05-2009
My Device: Dev Alpha
My Carrier: -
Accepted Solution

how to share URLs using InvokeActionItem ?

[ Edited ]

the following code used to work in beta4release:

InvokeActionItem {
            title: qsTr("Share")
            ActionBar.placement: ActionBarPlacement.OnBar
            query {
                mimeType: "text/plain"
                invokeActionId: "bb.action.SHARE"
            }
            onTriggered: {
                var t = "http://www.google.ca";
                data = t
            }
        }

 but it no longer shares anything in GOLD release (BBM for example is launched but no text is sent/typed)...worked fine in beta4 for NFC and BBM Smiley Sad

 

tried various other mime types like text/url text/txt ,... but stiill no result....

 

anyone been able to share urls in gold release?

BlackBerry Development Advisor
Posts: 15,694
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: how to share URLs using InvokeActionItem ?

The code above worked fine for me in 10.0.9.1675.  Can you confirm the OS version you are using?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Highlighted
Developer
Developer
Posts: 174
Registered: ‎03-05-2009
My Device: Dev Alpha
My Carrier: -

Re: how to share URLs using InvokeActionItem ?

umm dunno why, but i jut retested that code again and it's working!! must have been one of those days....

 

there could be an issue though if there are spaces in the url...i'll submit an issue if i find anything more...but for now this is resolved!