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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Developer
Posts: 10
Registered: ‎08-06-2013
My Device: BBZ10 -LimitedEdition
My Carrier: Movistar Argentina

Social Invoke Framework

[ Edited ]

invoke framework in Air not working properly.

 

This works but I don't open to send a tweet

 

request.target = "com.twitter.urihandler";
	request.action = InvokeAction.SHARE;
	request.mimeType = "text/plain";
	request.uri= "data://";
	var data:ByteArray = new ByteArray();
	data.writeUTFBytes( "Lo Logreeeeee" );
	request.data = data;

InvokeManager.invokeManager.invoke(request);

 

 

In this way does not work, "Twitter" isn't recognize as target
This is the way that the official documentation suggests

request.target = "Twitter";
	request.action = InvokeAction.SHARE;
	request.mimeType = "text/plain";
	request.uri= "data://";
	var data:ByteArray = new ByteArray();
	data.writeUTFBytes( "Lo Logreeeeee" );
	request.data = data;

InvokeManager.invokeManager.invoke(request);

 

 

How can i send a tweet from my app?.

 

 

BlackBerry Development Advisor
Posts: 172
Registered: ‎10-25-2010
My Device: Not Specified

Re: Social Invoke Framework

The invoke framework will not send the tweet for you. It can merely open the Compose Tweet Card pre-filled in. It is up to the user to press "Tweet" to actually send it.

 

This worked for me.

 

var request:InvokeRequest = new InvokeRequest();
request.target = "Twitter";
request.action = InvokeAction.SHARE;
request.mimeType = "text/plain";
var data:ByteArray = new ByteArray ();
data.writeUTFBytes ("What Logreeeeee");
request.data = data;
InvokeManager.invokeManager.invoke (request);

 

New Developer
Posts: 10
Registered: ‎08-06-2013
My Device: BBZ10 -LimitedEdition
My Carrier: Movistar Argentina

Re: Social Invoke Framework

[ Edited ]

When I use 

request.target = "Twitter";

 

Not Open Tweet Application

 

When I use 

 

request.target = "com.twitter.urihandler";

Not compose tweet Card..

 

any suggestions..

 

 

BlackBerry Development Advisor
Posts: 172
Registered: ‎10-25-2010
My Device: Not Specified

Re: Social Invoke Framework

  1. Is the Twitter application installed on the device?
  2. Is there a Twitter account set up?
  3. What Device, OS Version, SDK version are you using?
Highlighted
New Developer
Posts: 10
Registered: ‎08-06-2013
My Device: BBZ10 -LimitedEdition
My Carrier: Movistar Argentina

Re: Social Invoke Framework

[ Edited ]

Twitter by default

Yes there is a account set up

The device is a bbz10  SO 10.1.0.273 

The AIR SDK 3.2.1

 

The same problem I have with "Facebook". and other Social Net

 

 

BlackBerry Development Advisor
Posts: 172
Registered: ‎10-25-2010
My Device: Not Specified

Re: Social Invoke Framework

Not sure what more to suggest. If you want create a small sample application with it not working and send me the .bar file.

jdolce <at> qnx <dot> com
New Developer
Posts: 10
Registered: ‎08-06-2013
My Device: BBZ10 -LimitedEdition
My Carrier: Movistar Argentina

Re: Social Invoke Framework

Ok I'm sending a bar file...