Has no one run into anything like this? I really don't want to have to rewrite my application as a native app.
I worked on browser/and air app for android (flash 4.0) but only used the Socket
class which worked wee on Desire. It works on both ... YOu can try with sockets
or if you need server side functionality ServerSocket maybe it will work.
In your app descriptor XML file do you have network permissions enabled?
<uses-permission android:name="android.permission.INTERNET" />
I have the same problem with my Galaxy S. I succed with TCP but I need to use UDP and I can't. I'm using Flash CS5 with Air 2.5 and with the Emulator works fine but it doesn't on the Galaxy.
Does it work on some phones but not others?
I've encountered the same problem. Unfortunately, it looks like DatagramSocket is not implemented in AIR Mobile at all. DatagramSocket.isAvailable claims FALSE in all cases.
in my app descriptor file I have following line enabled:
I use AIR 2.7 and latest version of Flash Builder. It seems like this feature is still unavailable in the API.
Do you have any knowledge when (if ever) Datagrams will be included in AIR?
According to this documentation the DatagramSocket features are only available in the desktop and extendedDesktop profiles: http://help.adobe.com/en_US/air/build/WS144092a96ffef7cc16ddeea2126bb46b82f-8000.html
I don't know if there are plans to add the other profiles in the future.