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
Developer
ChappyK
Posts: 75
Registered: ‎09-13-2011
My Device: Playbook

InvokeAction.SHARE

has anyone used or seen an example they could share using InvokeAction.SHARE ?? 

 

I'm trying to figure this out and all I want is to share a link and some text to social apps installed on the device. This is for the BB10 Alpha Dev device latest SDK's



Show your support and click on the like button when you see a post that was helpful.
Developer
ChappyK
Posts: 75
Registered: ‎09-13-2011
My Device: Playbook

Re: InvokeAction.SHARE

this is my code thus far:

 

var byteArray:ByteArray = new ByteArray();
byteArray.writeUTFBytes("this is my message");
var invokeMgr:InvokeManager = InvokeManager.invokeManager;
var invokeQuery:InvokeRequest = new InvokeRequest();
invokeQuery.data = byteArray;
invokeQuery.action = InvokeAction.SHARE;
invokeMgr.invoke(invokeQuery);

 

and the result:

[qnx.pps.Message(invokeTarget dat: {
data : dGhpcyBpcyBteSBtZXNzYWdl
action : bb.action.SHARE
}, peer : null, error : null, id: null, result: null]
INVOKE RESPONSE [qnx.pps.Message(invokeTarget dat: [null], peer : @control, error : INVOKE_NO_TARGET_ERROR, id: 1, result: invokeTarget]

 

any help is greatly appreciate it, even if it's to tell me I'm a complete reet lol. Also could it be because there are not SHARE targets on the alpha devices?



Show your support and click on the like button when you see a post that was helpful.
Developer
ChappyK
Posts: 75
Registered: ‎09-13-2011
My Device: Playbook

Re: InvokeAction.SHARE

100+ views and still no feedback? has no one else tried this?



Show your support and click on the like button when you see a post that was helpful.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: InvokeAction.SHARE

You might be leading the way on this. It is on my list to do.