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

Adobe AIR Development

Reply
Trusted Contributor
Posts: 223
Registered: ‎03-14-2012
My Device: PlayBook 2.0

How to open the BlackBerry Share Card?

Hi,

I would like to invoke the BlackBerry Share Card frmo my Air based app. (I'm not using a BlackBerry SDK)

Can it be done such as invoking a single service such as BBM (target: sys.bbm.sharehandler) but with an other targer handler?
If so what's the handler for the Share Card?

import qnx.fuse.ui.core.InvokeActionItem;
import qnx.fuse.ui.core.ActionSet;
import qnx.fuse.ui.core.ActionBase;

function invokeInviteBBM(e:Event=null):void {
var byteData:ByteArray = new ByteArray();
byteData.writeUTFBytes("hello");
var requestBBM:InvokeRequest = new InvokeRequest();
requestBBM.mimeType = "text/plain";
requestBBM.target = "sys.bbm.sharehandler";
requestBBM.action = InvokeAction.SHARE;
requestBBM.data = byteData;
InvokeManager.invokeManager.invoke(requestBBM);
}

 


Thank you
vibes

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: How to open the BlackBerry Share Card?

I believe this question has been answered:

http://supportforums.blackberry.com/t5/Adobe-AIR-Development/How-to-invoke-the-BlackBerry-Share-menu...

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.