UDP in Air native extensions (ANE) on mobile devices

i understand that UDP is not supported in Air on mobile devices (in actionscript). so i tried to make an air native extension (ANE) that sends UDP packets. however, i'm finding that this also does not work. the exception i'm getting seems to suggest that sending UDP packets from a ANE is being blocked due to a permissions issue. i'm testing on android, and i do have the INTERNET permission in my manifest. is this a known issue? is UDP blocked in ANEs as well?

Hello Mr,
Sorry for my poor English...
I also try to make ane with java.
But I'm totally stuck at include resouce things in java.
Did you try to R.resource when you make jar-library.

Similar Messages

  • How to use foreground dispatch system of android NFC with AIR native extension?

    Hello,
    I'm developping an AIR application which invokes NFC on android, via AIR native extension (ANE).
    I would like to enable foreground dispatch system of NFC (see http://developer.android.com/guide/topics/nfc/advanced-nfc.html#foreground-dispatch), but unfortunately it has not been achieved so far.
    [Problem]
    For enabling foreground dispatch system of android NFC, we need to listen some android native events e.g.) Activity.onNewIntent(), Activity.onPause() and Activity.onResume(). But I have no idea how to dispatch them to ANE. Could anyone tell me how to get it?
    I know there is an available ANE for android NFC as follows:
    http://code.google.com/p/ane-lab/source/browse/#svn%2Ftrunk%2Fmobile%2Fandroid%2Fjava%2Fnf c1
    But it is not fit for our use case, as it just uses "intent dispatch system" (another way to use android NFC).
    Maybe AIR must be extended for this case, but any information is welcome.
    Thanks.

    Hello
    My name is Sadao Tokuyama.(http://twitter.com/tokufxug)
    Is the person who is to manage the sample code in experimental AIR
    Native Extension.
    If you want to achieve the de-patch system foreground NFC, it is
    necessary to consider the following points.
    1.Create FREFunction for initial processing. processing of onCreate.
    2.can be obtained in onResume Event.ACTIVATE. After issuing
    Event.ACTIVATE, call the FREFunction to run in onResume.
    3.can be obtained in onPause Event.DEACTIVATE. After issuing
    Event.DEACTIVATE, call the FREFunction to run in onPause.
    4.onNewIntent can be obtained at InvokeEvent.INVOKE. After issuing
    InvokeEvent.INVOKE, call the FREFunction to run onNewIntent.(Gets the
    Intent of the scanned NFC. : FREContext.getActivity().getIntent())
    I have committed the sample code. Your reference.
    http://code.google.com/p/ane-lab/source/browse/#svn%2Ftrunk%2Fmobile%2Fandroid%2Fjava%2Fnf c-foreground-dispatch
    Thanks.

  • ANE Free AIR Native Extensions Collection

    Just thought id share this list of free ANEs I came accross whilst browsing the web http://sleepydesign.blogspot.jp/2012/07/ane-free-air-native-extensions.html

    I think you would need to do this in the Air app not within the extension. In the app xml file add this:
    <iPhone>
        <InfoAdditions>
            <![CDATA[
                <key>UISupportedExternalAccessoryProtocols</key>
                <array>
                    <string> ... </string>
                </array>
        ]]>
        </InfoAdditions>
        <requestedDisplayResolution>standard</requestedDisplayResolution>
    </iPhone>
    Fill in the array section.

  • Project setup for a mobile and desktop application including native extensions (ANE)?

    I'm using Flash Builder 4.6 and I want to develop an application that is deployed to mobile and desktop devices. Therefore I tried a setup with three projects; one desktop project for Windows and Mac OSX, one mobile project for iOS and Android and also one library project for shared resources. The library project is used in the mobile and desktop project. Afterwards I placed all stuff like AS classes and UI components in the library project and instanciate them in the devices project. This works so far. (As consensus decision-making I used Flex components that are available vor mobile and desktop.)
    But If I want to use native extensions (ANE) like a DLL for Windows or a gyroscop for mobile devices, then I can't add the ANE to the library project. I have to add the ANE file separately to each device project and build a separate UI components. Is this the way it's intend to use ANE files? Is there an even simpler approach?
    Or is there a completly different way, e.g. setup just one common project (instead of three) and use different skins for mobile and desktop?
    Your answer is appreciated. (Including links to documentation and tutorials.)

    This thread doesn't look promising:
    http://forums.adobe.com/message/4737831
    Same here:
    http://stackoverflow.com/questions/11143907/flashbuilder-4-6-how-do-setup-project-for-mobi le-desktop-publishing
    Though if you're using Starling, there's some setup instructions here:
    http://wiki.starling-framework.org/manual/project_setup

  • Developing and using Adobe AIR native extensions for Android devices

    I was using this tutorial:
    "Developing and using Adobe AIR native extensions for Android devices"
    http://www.adobe.com/devnet/air/articles/ane-android-devices.html
    When packing the Flex mobile ANESampleTest to deploy on an Android device, the below error happens
    Error occurred while packaging the application:
    aapt tool failed:invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/drawable-xxhdpi
    invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/values-sw600dp
    invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/values-sw720dp-lan
    Does anyone know what the issue might be?

    Did you find a workaround for the Error? I'm getting the same and I can't seem to find any solution.

  • External library inside Air native extension for android

    Hello everyone,
    First, I've been looking throught this topics
    - http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries
    - http://stackoverflow.com/questions/24626380/how-to-include-additional-jar-in-android-nativ e-extension-for-adobe-air-mobile
    I got a similar problem. But not exactly the same. And the solution didn't worked for me :(.
    First of all, I don't have any visible error.
    -I can easily talk between java and action script.
    -The gateway is set without problems.
    My problem comes when, from my java-side-part of the extension, I try to call a 3rd party library. This library is (and I think this is where I do something  wrong) linked to my project as an external lib, in .jar format.
    So when I make a call to 3rd party library, it just doesn't print anything. Neither on the adobe part or on the java part. The logs that are before my call are printed but not the ones after.
    I tried different solutions that are:
    -Taking all compiled class files of my external lib and add it inside the main native extension jar [link1]
    same result (no errors)
    -including the 3rd party jar inside the ANE by adding a dependence file that require the .jar [link2]
    with this method i got this error that I don't get
    > aapt tool failed:ERROR: input directory '--auto-add-overlay' does not exist
    My third party library also include's itself some external .jars so do I need to include every jars inside the same packaged jar?
    I can see that a lot of people are dealing with issues like that so my question would be:
    What is the best way to include 3rd party library inside android AIR Native Extension ?.
    For information, here is what I do to create the ANE
    >adt -package -target ane AirInfinitGameANE\AirInfinitGame.ane AirInfinitGameASLib\src\extension.xml -swc AirInfinitGameANE\AirInfinitGameASLib.swc -platform Android-ARM -C AirInfinitGameLib .
    - AirInfinitGameASLib: just the folder with the actionScript part and the config xml file
    - AirInfinitGameANE: folder in the one that will be the native extension
    - AirInfinitGameLib: the eclipse java project. I need to put in that folder the airInfinitgamelib.jar(extension jar) and the library.swf (from the swc file) in order to beeing able to compile the ANE.
    Here it is ! Thanks a lot for thoses who'll read me.

    I had the same problem recently and fixed it as follows;
    - Extract the 3rd party jar file and copy the class folder (usually named "com" in the root of the jar) to my project.
    - Under Project Properties -> Java Build Path -> Libraries click "Add class folder" and add the "com" folder you just extracted from your .jar.
    Hope this helps

  • Adobe Air native extension for admob

    Dear Adobe Team,
    We have recently purchased Adobe Air native extension for admob for android & ios
    but every time we upload our app to an ipad or iphone, the app crashes.
    We have carefully followed your instructions, and we're sure we've not made a mistake writing the action script 3 code.
    We need your help in solving this problem urgently, as we are now running behind schedule in uploading our app.
    Thanks very much,
    Amir Steklov and Dorit Leshnick

    Before I was also searched a lot to find good  add network and also Admob.
    Finally we done successfull integration using..  working fine in all IOS devices. not yet released to Apple app store
    http://code.google.com/p/flash-air-admob-ane-for-ios/source/browse/trunk/admobaneiphone/sr c/admobtest.as?r=2
    You can check our add setups using Air ANE's for our android game ExpressTrain.
    https://play.google.com/store/apps/details?id=air.timuzsolutions.expresstrain&feature=sear ch_result#?t=W251bGwsMSwyLDEsImFpci50aW11enNvbHV0aW9ucy5leHByZXNzdHJhaW4iXQ..
    you no need to buyAdobe Air ANE's everything is free but all u need to do is googling,
    hope this will help.
    Bala
    Message was edited by: vamsibalu

  • Is it possible to access an AIR Native Extension inside an Actionscript worker?

    Hi, I'm currently trying to push off some time consuming tasks to an actionscript worker. This worker will in turn needs to call out to an AIR Native Extension as part of it's processing.
    I've tried various combination in Flash Builder 4.7 i.e. embedded worker and external worker (with explicit packaging of the ANE in the external worker project)  but alas I've been unable to get this to setup to work. I keep getting an error from the worker saying that the native extesion class could not be found (Error #1014).
    Does anyone know if it is at all possible to do this or it's a limitation of Actionscript workers (loading thw swf bytes does not load up the ANE)?

    Hi
    I also met the same problem---"native extesion class could not be found"
    The problem is solved?
    I think the reason is
    " <extensions>
      <extensionID>XXXXXX</extensionID>
    </extensions>“ in  "-app.xml"
    the worker do not  konw the extensionID
    In this article :
    Adobe AIR * Using native extensions for Adobe AIR
    Including the ANE file in your application’s library path
    To compile an application that uses a native extension, include the ANE file in your library path.
    Using the ANE file with Flash Builder
    If your application uses a native extension, include the ANE file for the native extension in your library path. Then you can use Flash Builder to compile your ActionScript code.
    Do the following steps, which use Flash Builder 4.5.1:
    Change the filename extension of the ANE file from .ane to .swc. This step is necessary so that Flash Builder can find the file.
    Select Project > Properties on your Flash Builder project.
    Select the Flex Build Path in the Properties dialog box.
    In the Library Path tab, select Add SWC....
    Browse to the SWC file and select Open.
    Select OK in the Add SWC... dialog box.
    The ANE file now appears in the Library Path tab in the Properties dialog box.
    Expand the SWC file entry. Double-click Link Type to open the Library Path Item Options dialog box.
    In the Library Path Item Options dialog box, change the Link Type to External.
    Now you can compile your application using, for example, Project > Build Project.
    the error will be done
    Unfortunately, it still does not work well!
    Error: Error #3731: This feature is not available within this context.
      at flash.external::ExtensionContext$/_createExtensionContext()
      at flash.external::ExtensionContext$/createExtensionContext()
    3731
    This feature is not available within this context.
    This error occurs if a background worker attempts to access an API that is not available to it. 
    Run-Time Errors - Adobe ActionScript® 3 (AS3) API Reference

  • AdMob AIR native extension

    Hey guys.
    I've been working on an AdMob ANE for a couple weeks:
    http://www.brinkbit.com/blog/ane-admob-android-ios/
    I know there are already a number of these out there, but I couldn't find one with all the features that I wanted, so I decided to make my own. Mostly I was interested in exposing the AdMob SDK's new property "tag_for_child_directed_treatment" to make apps COPPA-compliant. I don't know if anyone else is really concerned about COPPA compliance, but it was something that my company has been paying close attention to.
    The ANE also served as a great learning experience for me, as it was the first big Native Extension I've made. I plan on making a lot more of these in the near future, and it was useful to start with something that I knew was possible.
    In making it, I realized there were a number of other aspects I could expose in the SDK that maybe some other developers overlooked, like the ability to preload both banner and interstitial ads. I tried to make it as full-featured as possible and I'm pretty proud of the result. This was mostly for my own benefit, but I'm hoping that other developers will find this useful. I spent a ton of time working of this and I didn't feel comfortable offering it 100% for free, especially since most of the other AdMob ANEs I found are paid, but I tried to make it as cheap as reasonably possible.
    I am planning on making some free tools for Starling developers in the near future, so if paid stuff is not your cup of tea, I totally respect that and am gonna make stuff for you too
    Thanks for taking the time to read this.
    Here's a tutorial I put together http://www.brinkbit.com/blog/admob-air-native-extension-tutorial/

    https://code.google.com/p/adoble-flash-air-ad-network-framework/

  • AIR Native extensions Hello World Example for iphone ios

    I need help as i am having runnable code library for Hello world which i took from the url,
    "http://akabana.info/2011/08/11/air-native-extension-10-try-air-for-ios-ane/"
    in which we are making static library in Xcode by using ADOBE AIR.framework so that we are getting.a extension file. Now how to call further function because its just a library now how i want to know the steps further. How to call this library in the IOS project.

    Chris,
    You may have more luck over on the OA Framework forum OA Framework
    Best of luck,
    John

  • Flash CS6 IDE Air Native Extensions problem HELP

    i'm trying to test out CS6's new native extension (ANE) but I'm having a difficult time getting it to work.
    First I went to Adobe's page: http://www.adobe.com/devnet/air/native-extensions-for-air.html
    Downloaded the "Vibration" ane and then through the Actionscript settings panel added the .ane file to my app and then in my actionscript tried to add the code:
    import com.adobe.extensions.Vibration
    var vibe:Vibration;
    vibe = new Vibration();
    vibe.vibrate();
    But when I go to compile I get this error:
    Scene 1, Layer 'Layer 2', Frame 1, Line 3
    1172: Definition com.adobe:Vibration could not be found.
    What do I need to do to get this running? I've tried several different things and variations on the above code but nothing seems to do it. Help!

    Well that gets me furthur than before. Thank you. I had to change a few things.
    import com.adobe.extensions.Vibration
    I had to change to:
    import com.adobe.nativeExtensions.Vibration
    but now when I test in the debugger I get this error:
    [SWF] iOS.swf - 3827 bytes after decompression
    Vibration Constructor
    Vibration Constructor: Create an extension context
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at com.adobe.nativeExtensions::Vibration$/initExtension()[/Users/mgarner/Dropbox/_apps/score board/com/adobe/nativeExtensions/Vibration.as:58]
              at com.adobe.nativeExtensions::Vibration()[/Users/mgarner/Dropbox/_apps/scoreboard/com/adobe /nativeExtensions/Vibration.as:32]
              at iOS_fla::MainTimeline/frame1()[iOS_fla.MainTimeline::frame1:14]
              at runtime::ContentPlayer/loadInitialContent()
              at runtime::ContentPlayer/playRawContent()
              at runtime::ContentPlayer/playContent()
              at runtime::AppRunner/run()
              at ADLAppEntry/run()
              at global/runtime::ADLEntry()
    And when I publich to app the phone doesn't vibrate, but all my other functions and actions are working. Any ideas?

  • Has anyone anywhere managed to get "AIR Native Extensions" to work with Flash CS 5.5?

    I'm trying to integrate Adobe's "Gyroscope" example of ANE to work from Flash Professional CS 5.5.
    http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/gyroscope.html
    Apparently, one has to use the somewhat crude "ADT" command-line tool to build an app that uses Native Extensions.
    Unfortunately, I cannot get past the numerous errors ADT is throwing at me.  The latest is:
    unexpected failure: inputs not set
    java.lang.IllegalStateException: inputs not set
              at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:62)
              at com.adobe.air.ADT.parseArgsAndGo(ADT.java:556)
              at com.adobe.air.ADT.run(ADT.java:413)
              at com.adobe.air.ADT.main(ADT.java:463)
    Unfortunately, I'm not an advanced developer, so I really don't know what any of that means. (But I'm sure if I can just get this one example to compile and run, I'll be better able to perform the necessary tasks in the future.)
    Can someone PLEASE help me?
    Thanks.
    Mike

    If you are looking for input from others, you are more likely to find people with either similar problems or complaints in the Flash General Forum (http://forums.adobe.com/community/flash/flash_general?view=discussions) rather than here in the Actionscript 3 forum.  If you scan thru it for the past few weeks/months you might even find someone with the same problem.

  • Utilizing AIR Native Extensions in Flash Pro CS5.5

    I'm trying to integrate Adobe's "Gyroscope" example of ANE to work from Flash Professional CS 5.5.
    http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/g yroscope.html
    Apparently, one has to use the somewhat crude "ADT" command-line tool to build an app that uses Native Extensions.
    Unfortunately, I cannot get past the numerous errors ADT is throwing at me.  The latest is:
    unexpected failure: inputs not set
    java.lang.IllegalStateException: inputs not set
              at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.j ava:62)
              at com.adobe.air.ADT.parseArgsAndGo(ADT.java:556)
              at com.adobe.air.ADT.run(ADT.java:413)
              at com.adobe.air.ADT.main(ADT.java:463)
    Unfortunately, I'm not an advanced developer, so I really don't know what any of that means. (But I'm sure if I can just get this one example to compile and run, I'll be better able to perform the necessary tasks in the future.)
    Can someone PLEASE help me?
    Thanks.
    Mike

    Joe_suchta, you can follow these steps http://www.youtube.com/watch?v=pwVkK27Nors
    Lucky

  • Adobe AIR Native Extensions

    We are planning to choose a new platform of our new convergent media device. Like to know whether we can develop our platform using Adobe AIR Native Extension for Linux OS?
    I came to know that Adobe has subscription based suuport for developers. If that is the case we can purchase support for development assistance on Linux based AIR Native Extensions. What we need are the FRE libraries and C code to run the Native extensions on Linux. I had acces to AIR 3.0 for Linux sometime back. Unfortunately our project look some time to mature.
    Please let us know about this so that we can base our plans on AIR/Linux native extensions.

    Four part Series, this is link to first part
    http://quetwo.com/2011/10/31/creating-an-windows-air-native-extension-with-eclipse-part-1/
    Another one
    http://www.flexjunk.com/2011/11/30/developing-an-air-native-extension-for-osx-and-windows- in-c/
    Hope those help.

  • Universal Advertising AIR Native Extension

    I am developing an Universal Advertising AIR Native Extension for developer which want a easy way to monetize their app.
    Now seeking backer for this project in indiegogo. If you interesting on it, you can visit here for more information.
    Universal Advertising AIR Native Extension | Indiegogo

    you must use twitter for promoting such pages with the community

Maybe you are looking for

  • To find cash discount due date for invoice

    Hi, is there any fuction module to get cash discount due date using Payment term Zterm, Ztag:1Days from Baseline Date for Payment and Ztag2:Days from Baseline Date for Payment from T052 table. Regards, santosh

  • Mailbo ringtones not working?

    I d/l several ringtones and assigned them to specific contacts...........but the only ringtone that plays is the one I have set as my default. I know how to set ringtones because I did it with my Eris HTC,.,.,.,.,.,.,.,.,.,.,.but having trouble with

  • Canon cr2 files not recognised in LR4.1

    I have Lightroom 4.1 running on a MacBook Air with 10.8.1 OS It is not recognising the files from my Canon 7D with v 2.00 firmware The files are recognised however in Bridge v 6 Any solutions?

  • Viewing created reports in SWT

    Hi all, I work on a small project with SWT where I have a form with some data. So when click on a button on this form, I want to get a print preview in other form. 1. I already created a report using empty CR, and it is working. It is added to my SWT

  • How to mute: warning - @ABC-XYZ is an unknown tag ?

    Hello, I am using Java 1.4.2, XDoclet 1.2.2 and Ant 1.6.2. When I put the ejbdoclet tags in my java source file for my bean and then run javadoc through Ant I get the following warnings: warning - @ejb.interface-method is an unknown tag. warning - @e