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

Posts: 188
Registered: ‎09-03-2012
My Device: Blackberry 10
Accepted Solution

Hook application to "share" text feature?



I am wondering how do you add the application to the "share text" functionality?


E.g.: in the browser, you select a text and click on the "share" button, the system will open a list of application available to select for sharing.


Which API is available for my application to do that?



Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Hook application to "share" text feature?

Just use the Invocation framework.




You want to register for handling the bb.action.SHARE action, with mime type text/plain.


BBM, Twitter, and Facebook are examples of how to structure your target:




Basically just have the same invocation target for sharing text as BBM, but with your own Target ID.

Paul Bernhardt
Application Development Consultant

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Posts: 188
Registered: ‎09-03-2012
My Device: Blackberry 10

Re: Hook application to "share" text feature?

Thanks PBernhardt.

It works well.