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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Trusted Contributor
mdd
Posts: 197
Registered: ‎01-17-2012
My Carrier: ATT

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

ok, that clears things up: don't even need a UUID at all... or an ANE to register...

 

and yes, that doc helps!  Thanks, I hadn't seen that one before... perhaps I will be able to include BBM after all.

 

Regards,

Please use plain text.
Developer
jtegen
Posts: 6,154
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

That worked pretty well.  Still need to test it with a real contact.

Would be nice if this could be expanded to set the user's status.

 

Think this works.  Since QML data seems to be just text and in AIR it is a byte array:

var request :InvokeRequest = new InvokeRequest();
request.action = InvokeAction.SHARE;
request.target = 'sys.bbm.sharehandler';
request.data = new ByteArray();
request.mimeType = 'text/plain';
request.data.writeUTF( 'Hello World' );
			
InvokeManager.invokeManager.invoke( request );

 

Please use plain text.
Trusted Contributor
mdd
Posts: 197
Registered: ‎01-17-2012
My Carrier: ATT

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

[ Edited ]

here is my attempt:

var request :InvokeViewerRequest = new InvokeViewerRequest();
{
	request.action = "bb.action.BBMCHAT";
	request.windowId = "660.216.0554";
	request.windowHeight = 1000;
	request.windowWidth = 700;
}			
var viewer:Viewer = InvokeManager.invokeManager.invokeViewer( request );
{
	viewer.addEventListener( ViewerEvent.VIEWER_CREATED, viewerCreated );
	viewer.x = 10;
	viewer.y = 10;
	viewer.resize( 500, 500 );
	viewer.zOrder = 10;
	viewer.visible = true;
				
	function viewerCreated( event:ViewerEvent ):void
	{
		//viewer is created and ready to communicate with.
					
		trace( "viewerCreated:", event );
	}
}
trace( "Viewer:", viewer );

 returns a Viewer, but no event: guessing this is because its not supported on DevAlpha simulator.

 

I haven't seen any info on upcoming NA jam sessions, so seems no way I can get DevAlpha device...

Please use plain text.
Developer
jtegen
Posts: 6,154
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

At this late date, probably not. Gold SDK is next week, and final release of the OS about a month later. I dont think RIM will have time.
Please use plain text.
Contributor
DitoAu
Posts: 10
Registered: ‎08-03-2012
My Carrier: claro

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

hi, where i can watch the recorded?
Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

Re: Learn Live: How To Make your BlackBerry 10 App Go Viral!

You can watch the recorded session here:  

 

How to integrate your app with BlackBerry Messenger on BlackBerry 10

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.