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

Web and WebWorks Development

Reply
Highlighted
Developer
Posts: 82
Registered: ‎09-26-2012
My Device: Torch 9800
My Carrier: NA
Accepted Solution

How to share text and image simultaneously using Blackberry invocation framework

Hi,

 

I need to share text and its corresponding image to FB, Twitter and BBM using the blackberry invocation framework. Does invocation framework support images and text sharing simultaneously.

 

When I use mime type as text/plain, the url of the image along with the text is shared and when image/jpeg is used only the image is shared and not the text. Below is the code snippet used.

ShareDataTo=function shareTo(key) {
//shareImage();
var text ="";

text = itemObject.myName +"\n My Age : Rs."+itemObject.myAge+"\n Address "+itemObject.address+"\n"
try
{
blackberry.invoke.invoke({
target: key,
action: "bb.action.SHARE",
type: "text/plain",
data:text
});
}
catch(Error)
{
//alert('in ShareDataTo error '+ Error);
}
}

 Please help,

 

Regards,

Annuk

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

Re: How to share text and image simultaneously using Blackberry invocation framework

This is not currently supported.  Right now you can do either text or an image, but not both.

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