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
VansFannel
Posts: 166
Registered: ‎03-04-2011
My Device: Playbook
Accepted Solution

Create an UDP Broadcast socket and wait to receive a message.

I'm trying to develop a Playbook application using Adobe Air SDK.

 

I want to create an application which open a UDP Broadcast socket and wait to receive a message.

 

Is this possible to do with Adobe Air SDK?

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Create an UDP Broadcast socket and wait to receive a message.

AIR supports UDP. Look at DatagramSocket class. Here is an old tutorial:

http://www.flashrealtime.com/udp-in-adobe-air-20/

Please use plain text.
Developer
Smugrik
Posts: 185
Registered: ‎04-05-2011
My Device: PlayBook
My Carrier: Bouygues Telecom

Re: Create an UDP Broadcast socket and wait to receive a message.

Though I recall UDP was not available on AIR for mobile devices, has that changed?

Julien
Web: smugrik.org Follow: @Smugrik
PlayBook apps:
OSCream
kiPass
Please use plain text.
Developer
UberschallSamsara
Posts: 920
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: Create an UDP Broadcast socket and wait to receive a message.

[ Edited ]

Per Adobe docs, it appears there is still not mobile profile support (I set the filter on the API reference for "AIR 3.1 and earlier runtime".)  Note the class property available for you to test for support at runtime.

 

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/DatagramSocket.html

 

"AIR profile support: This feature is supported on all desktop operating systems, but is not supported on mobile devices or AIR for TV devices. You can test for support at run time using the DatagramSocket.isSupported property. See AIR Profile Support for more information regarding API support across multiple profiles."

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Create an UDP Broadcast socket and wait to receive a message.

Darn. Wasnt certain. Thanks for the confirmation.
Please use plain text.
New Contributor
Extrawurst
Posts: 4
Registered: ‎05-17-2013
My Device: Q10
My Carrier: Vodafone

Re: Create an UDP Broadcast socket and wait to receive a message.

That changed now in the new Air SDK 3.8 wich is in beta right now. I am just starting to research developing for blackberry. Can I just use AIR 3.1 for blackberry 10 ?

Please use plain text.
Developer
UberschallSamsara
Posts: 920
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: Create an UDP Broadcast socket and wait to receive a message.

Please use plain text.
New Contributor
Extrawurst
Posts: 4
Registered: ‎05-17-2013
My Device: Q10
My Carrier: Vodafone

Re: Create an UDP Broadcast socket and wait to receive a message.

too bad, thanks
Please use plain text.
Developer
UberschallSamsara
Posts: 920
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: Create an UDP Broadcast socket and wait to receive a message.

Next BB10 supported AIR runtime is 3.5, slated for  June:

 

https://developer.blackberry.com/air/downloads/roadmap/

 

Click on release "A7 - Updated runtime":

 

"We're working with Adobe to bring version 3.5 of the Adobe AIR runtime to the platform. This update includes Stage3D support."

Please use plain text.
New Contributor
Extrawurst
Posts: 4
Registered: ‎05-17-2013
My Device: Q10
My Carrier: Vodafone

Re: Create an UDP Broadcast socket and wait to receive a message.

yeah but as far as udp sockets are concerned they need 3.8 to be available on mobile :smileysad:
Please use plain text.