ANE for one platform on Flex mobile project for iOS and Android

I'm very new at Flex Mobile Projects and native extension.
I have a big doubt... If I have an ANE that only works on iOS or Android, can I use it into a project for Android AND iOS?
I mean, if I want to do something and I've only found and ANE that works for iOS and another ANE that works for Android, can I create only one project and depending on the device use one or another? or should I create two different projects?
Thanks in advance

You can set them both up and when you publish just comment out the code that does not apply, this way you still keep it as one project but you can use the ANEs as needed, I had to do this with the iAd ANE only for Apple obviously and AdMob ANE which at the time was Android only.
Example
//Android ANE Code
blah blah blah
//iOS Code
code code code
Now when you publish for iOS comment out the Android related stuff
//Android ANE Code
blah blah blah
//iOS Code
code code code
Also dont forget to update your included ANEs when you publish and remove the ones that dont apply and update the XML files as needed. Its possible, but annoying, it would be nice if it was automated or could be flagged somehow so the Flash publisher would auto ignore it.

Similar Messages

  • Flex Mobile Project only lists "Google Android" in Target Platforms

    I just downloaded the masters colection cs5.5 and im am using FlashBuilder 4.5.  When I create a new Flex  Mobile Project, only Google Android is a target platform.  I don't see  Blackberry or iOS as options.
    I do see Apple iOS when I create a mobile ActionScript project.
    This must be due to a configuration setting.  Can anyone help?
    i have already looked at this peron post and i have tryed all of the sollutions and none of them seem to work http://forums.adobe.com/thread/867857

    That didn't help me either.  Ultimately, here's what I did.
    I uninstalled and reinstalled the software
    After it was reinstalled, I updated to the 4.5.1 SDK PRIOR to doing any other software update.
    Then I updated the Software
    The software update found all new items and installed them properly (which is what I believe the issue is -- if you update prior to using the 4.5.1 SDK it doesn't install the required bits).
    Now it seems to be working for me.
    Not sure if that's the problem, but that's how I fixed it.

  • Flex mobile project: web root and root path for a remote web service?

    Hi all,
    i'm trying to set up the testdrive tutorial for flex mobile project, with flash builder 4.5
    and php data.
    I've uploaded the files on my remote web space (e.g. http://mywebsite.org, and the
    test file is http://mywebsite.org/TestDrive/test/test.php... and it works
    correctly)... But when i'm setting properties of the project, i don't know what
    to write into the web root and root path fields... I thing root path is simply
    http://mywebsite.org... and whatever i write in the other fields (output folder
    too) i have errors when i click on "validate configuration"...
    What should i put into those fields? is zend framework (and gateway.php)
    strictly necessary?
    As you can see... i'm a bit confused....
    Many thanks for any help
    Bye
    Alex

    I thought it was a simple question...
    No advice?

  • StageVideo with Flex Mobile Project on iOS

    In a Flex Mobile project using StageVideo, StageVideoAvailabilityEvent always returns StageVideoAvailability.UNAVAILABLE.
    I've been reading all day and it looks like StageVideo might not be supported with Flex projects, but I can't find a concrete answer.
    I need a definitive answer, using Flash Builder 4.6, AIR 3.1, and Flash Player 11, can StageVideo be used. If so, any help as to how to get this working would be greatly appreciated.
    Thank you in advance.

    After much trial and error, I finally have a definitive answer. The answer is yes, you can use StageVideo in a Flex Mobile project. To be honest I found StageVideo to be completely useless, at least for what I was hoping to use it for.
    The first big problem is that the StageVideo plays underneath all Flash content. Second, at least on iOS, there were no video controls. I suppose you could roll your own, but I didn't take the time to experiemnt with this. I ended up just using StageWebView.
    More information here: http://www.unfetteredthoughts.net/2012/01/12/embedded-h-264-video-on-ios-with-a-flex-mobil e-project/
    I hope that helps anyone else looking for this.

  • Detected duplicate HTTP-based FlexSessions in CF10 with Air Mobile (3.4) IOS and Android apps

    We're getting the "duplicate session" error using Flash Remoting from Air 3.4 Mobile Apps ( IOS and Android ) with Coldfusion 10 Standard.
    faultCode:Server.Processing.DuplicateSessionDetected faultString:'Detected duplicate HTTP-based FlexSessions,
    generally due to the remote host disabling session cookies.
    Session cookies must be enabled to manage the client connection correctly.' faultDetail:'null'
    Have read most of the docs about this error -all to do with LCDS
    Notes:
    Not using LCDS,
    No Remote Calls from loaded Sub-Apps, 
    No Errors from the Flex Web App which is pretty  much identical and calls the same cfcs.
    The error does not happen all the time and is hard to reproduce - say 5% of app sessions at a guess.
    Could it be a two first time remote calls hitting the server together before a session is set up?
    Our remoteObjects are in two places 1) Main Application.mxml and within a class compiled into the main app - can't see how this would be an issue.
    I enabled session management for the CFCs in Application.cfc but still occurs. Is this neccessary - it's not in any docs?
    Could this be something to do with the app not being shut down - as is typical with mobile users? When they resume use after a day or two surely a new session will be created?
    Please advise thank you.

    For our profect I think this issue was caused as follows:
    Believing that remoting was full asynchronous we fired a 2 or 3 remote calls to the server at the same time ( within the same function ) - usually when the users goes to a new section of the app.
    This seemed to trigger the duplicate http session error since according to http://blogs.adobe.com/lin/2011/05/duplication-session-error.html  two remote calls arriving before a session is created will cause 2 sessions to be created.
    Our current solution ( too early to say it works ) is to daisy chain the multiple calls together .
    Also there seemed to be an issue where mobile apps that never quit ( thanks Apple! )  caused the error when activated after a few hours.
    I guess the session expires on the server and the error above occurs on activation.
    So the mobile apps now ping the server with a remote call when activated after sleeping for more than one hour.
    All duplicate http errors are silently caught and reported.
    Fingers crossed we won't get any more!

  • Regarding publish flex mobile project in app store

    Hi All,
    I have developed a flex mobile project for iPhone. And, I want to publish it in App Store. I already have iTunes distribution certificate and Developer licence.
    Kindly help me to publish it in App Store.
    Thanks in Advance
    Chandan

    http://www.adobe.com/devnet/flash/articles/app_store_guide.html

  • Flex mobile project as a library for Objective-c project?

    We have a objective-c app for ios already,
    now we have to add a rtmp based feature(I write that with a flex mobile project).
    is there any way to compile the flex mobile project as a objective-c library ,so that the objective-c developer can make that work on ios device?
    Please help me ,Thanks!

    Usually, people include the objective-c libraries in their AIR applications, using native extensions. However, if you just want rtmp streaming in your native iOS app using flash and not the UI, you may want to use the AV Foundation framework, instead of a flex mobile project.
    You may find some useful information and links in this article to achieve it: http://www.adobe.com/devnet/adobe-media-server/articles/streaming-video-ios.html

  • Windowed Application for Flex Mobile Project

    I have a project intended for both deskotp and mobile, and so I began it as a Flex Mobile project.  I then imported the source into a Flex Air project and everything has been working great--until I added cut and paste functionality using the NativeApplication/NativeWindow model.  On a Mac, because there is a default set of menus, this works just fine, but on a pc, the menu is not present unless you define it.  My top level class is a ViewNavigatorApplication, and I can't for the life of me figure out how to get my NativeWindow NativeMenu built.  I have tried plugging code into creationComplete, initialize, preinitialize, but nothing works.  I also tried putting a WindowedApplication around the ViewNavigatorApplication, but that too failed.
    So is there a way to make this work?  While menu support would be nice, I would settle for just shortcut key support.
    Thanks in advance,
    Adrian

    Umm, overall it's doable but you may come up against two or three hurdles:
    The program may have to run for hoursThat may require keeping the phone handset connected to a charger, especially if the display backlight is configured to be on continuously.
    a sample rate of 20Hz from the sensor.You'll have to cross that bridge when you get there, but I suspect that many handsets won't be able to handle receiving, processing and displaying of data every 50 ms.
    log the data and produce simple statistics from a session.Keeping all data in memory probably won't be feasible; writing it to the record store may make the program still slower, further limiting the sampling frequency that can be handled.
    In future all Java ME related questions should be posted on the [CLDC and MIDP forum|http://forum.java.sun.com/forum.jspa?forumID=76].
    any pointers as to how to beginIf you have never programmed in Java, go through [The Java™ Tutorials|http://java.sun.com/docs/books/tutorial/index.html]. If you have some experience in Java but none in Java ME, [this tutorial|http://today.java.net/pub/a/today/2005/02/09/j2me1.html] will get you through the basics.
    luck, db

  • Overlaying adobe air sdk 13 for flex mobile project gives me error

    After overlaying adobe air sdk in flash builder 4.6 i am getting this error in my flex mobile project "Could not resolve <s:ViewNavigatorApplication> to a component implementation.". I have followed the steps mentioned on adobe site. Can anyone please suggest me what i need to do in order to get this work.

    You are probably missing the updated flash debug player that describes all the new methods to the application.
    There is a good walkthrough of how to upgrade flash builder to a new library version, this is described in the first video of hsharma's starling tutorials.
    Its very annoying though, i wish adobe would really build in a feature like this to update libraries.

  • Flex Mobile project scaling with Retina display iPad (3rd gen).

    Adobe et al,
    With the new iPad 3 we now have a ton more pixels to utilize. I'm familiar with and have already successfully tested the AIR 3.1+ commandline compiler option (-platformsdk) to get Retina display on the new iPad. In ActionScript mobile projects the content is rendered beautifully on the new iPad. But with Flex Mobile projects, something is happening that causes it to render incorrectly. It's retina display alright, but the size is way too small.
    Below is an image WITHOUT the -platformsdk build tag, that causes the app to be pixel doubled to fit on the new iPad:
    Notice that it's scaled proportionally, even though the text and components are slightly pixelated. Not a big deal, but noticeable on the device.
    This image is taken with the app rendering in Retina display (setting the -platformsdk pointing to iOS 5.1 SDK):
    As you can see, the text/components are rendered really clear, but the scale is way off. Obviously it's getting the width of 2048x1536 from the device, but it's way too small.
    How do I fix this? I've tried changing the applicationDPI, but it doesn't fix it. Setting a width/height of 1024x768 does nothing either. It seems we need to overrride a behavior that causes it to fit everything in so small.
    A little help?
    Thanks,
    iBrent

    Alright, kevinkorngut's answer was the right one. It appears that even though AIR 3.x can render high resolution apps, it still returns the incorrect DPI for the new iPad. In a Flex Mobile project you have to override the DPI using the method mentioned above.
    Here are the results I got:
    Using the runtimeDPIProvider property on the TabViewApplication tag (works for any of the three project types) I created a class that extends RuntimeDPIProvider. To detect which iPad I was on, I used the following code:
    override public function get runtimeDPI():Number
         var os:String = Capabilities.os;
         if(os.indexOf("iPad") != -1)
              if(Capabilities.screenResolutionX > 2000 || Capabilities.screenResolutionY > 2000)
                   return DPIClassification.DPI_320;
              } else {
                   return DPIClassification.DPI_160;
         } else {
              return Capabilities.screenDPI;
    I'm returning a DPI of 320 as this gives the best result that matches the proportions of the device. In other words, even though the iPad DPI is 264, setting the app to 320 gives the correct size at the new Retina display.
    In order for this to work, you must compile the app with the -platformsdk flag pointing to iOS 5.1 SDK, and currently that means you need a Mac running Lion with Xcode 4.3.1. Here's the adt command I used:
    adt -package -target ipa-test -storetype pkcs12 -keystore ~/Desktop/iOS_DevCert.p12 -provisioning-profile ~/Desktop/iOS_DevProfile.mobileprovision newiPadTest.ipa newiPadTest-app.xml newiPadTest.swf -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPh oneOS5.1.sdk
    Also, the -app.xml descriptor file must have the <requestedDisplayResolution>high</requestedDisplayResolution> within the <iPhone> tags.
    Thanks everyone for their replies!
    iBrent

  • Two styles for a native look (Flex Mobile App)?

    Hello,
    is it possible to use two styles/looks for the same App, that this one will look native on iOS AND on Android?
    Or will I have to build the same App twice to get this?
    - BB

    Check out Jason San Jose's blog posting here: http://blogs.adobe.com/jasonsj/2011/06/ios-theme-for-flex-mobile-projects-proof-of-concept .html

  • Possible to obtain phone IMEI number with flex mobile project?

    Just like the title says, is it possible to obtain phone IMEI number with flex mobile project? If not, does anyone know of another method to get a unique number to identify the phone being used (on android and iphone)? I'm asking because I'm building a chat application, and I need a way to potentially ban users based on something other than an IP address.
    edit: now that I think about it, an IMEI number might not be the best way, since wifi tablets may not hav an IMEI number, anyone have any other idea how I could get a number to identify a device that would already be present, because i'm afraid if its something generated by me, a simple uninstall and re-install could circumvent a ban.

    If this is an Android project, you can use this ANE:
    http://blog.snowflax.com/native-imei-action-script-extension-for-android/
    I have verified that it does work and provides the IMEI.  For cases where there is no IMEI ( bc the device is not a mobile phone, or it uses IMSI instead ), you can just bypass the device id check with your database, and enable full functionality.
    Although this is not full-proof, it will nevertheless screen a lot of devices.  With this, you can keep track of the number of app installs / resets, and add a 'banned' flag if you want to in your DB -- if you see unusal activity ( like:  unsually high number of re-installs ).
    ----->  UPDATE:
    I just found this ANE which  includes a class called 'SystemProperties', to find the IMEI/IMSI/serial/phone number on Android, and the MAC address on iOS:
    https://github.com/mateuszmackowiak/NativeAlert
    I have verified that the iOS part works, but haven't tried the Android side, yet.  Note: for iOS, it will also give you a UUID ( even though the object tag claims it is the UDID -- it's not ), which is worthless as a persistent means of identifying the device. since it gets reset on each app re-install.  So, for iOS, you have to use the MAC address, unless you are willing to store/restore the UUID into EncryptedLocalStore, as suggested by a user in:
    http://stackoverflow.com/questions/6794493/get-unique-identifier-mac-address-udid-etc-in-a dobe-air-for-ios

  • Test Flex Mobile Project On Iphone

    Hi,
    Can i test The flex Mobile Project in Iphone Simulator Like Xcode? in Flex debug i can select the Iphone device, but this Device haven't accelerometer for example.
    Can i Test in Another Debug Device, or can i enable Accelerometer in Debug Device in Flex?

    Adrian, flash/flex as a development tool is mostly platform independent so much development testing can be performed on any mobile platform. It may simply be a matter of convenience to use an android tablet in place of an iPad. That's not the same as an endorsement to buy an android tablet for testing iPad apps. You should always have the target platform available.
    The iPhone/iPad development works. Perhaps it could work better, but plenty of people use it now.
    Why use Flash? The reasons are plain to see - Flash developers can use their existing skillset and they can develop for multiple platforms with the same technology, rather than differrent technologies for each platform.
    Flash/Flex development for mobile isn't perfect, but neither is anything else.

  • Why am I getting-"The ExternalInterface is not available in this container" in Flex Mobile Project

    I am using StageWebView to show an HTML page. I want to call a function in my flex mobile project to be called from a JS function. Using ExternalInterface, I have 
       in Flex - 
        ExternalInterface.addCallback("myFunction",myFunc);
       in JS -
            function thisMovie(movieName) {
               if (navigator.appName.indexOf("Microsoft") != -1) {
                 return window[movieName];
               } else {
                 return document[movieName];
           function showAlert()
                  alert("Going to call AS function");
                thisMovie("ShowLocalHTML").myFunction("Hello");
                  return false;
    I am getting "Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime." when trying to run the application.
    And my project targets Android platform. And  I have Mozilla, Chrome installed on my desktop - although I am not user if that is relevant to the problem.
    Please help in resolving this issue.

    Is there an alternative?
    I want to display a local HTML file and then allow for JS to Flex communication. I am new to Flex and AS. As per my understanding, StageWebView is the only way to
    show a local HTML file in a mobile project. If the script interface is not available - then I cannot achieve JS-to-Flex communication. So is there any other way to do this??
    Please help ...else I will have to abandon my foray into Flex, AS and go back to Android Java.

  • Can't convert Flex Mobile project to desktop project

    I'm using the Flash Builder 4.6 trial, and I'm very new to flex development. I've been asked to convert an existing Flex Mobile project (appears to have been developed in Flash Builder 4.5) into an AIR desktop app.
    The project imported without complaint. However, the Add/Change Project Type > Convert to Flex Desktop Project menu item is disabled.
    I created a blank Flex Mobile project, then a blank Flex web project, then a blank ActionScript project. It's greyed out for those, too. I checked with the projects closed and open; the rest of the items on that submenu are enabled for all projects when closed.
    Is this feature disabled in the trial version?  Is something else going on?

    Clearly the device from verizon works, I would try to contact a computer tech to repair your computer
    Really it should be as simple as turn on, connect, go. If it isn't there is a break down somewhere in that computer
    What error msg?

Maybe you are looking for

  • COMMUNICATION PROBLEM WITH SCANNER TO COMPUTER OF DESKJET 3050 j610

    WHEN i TRY TO SCAN USING MY DESKJET 3050 j610 A MESSAGE SHOWS 'COMMUNICATION  PROBLEM NOT CONNECTED THEREFORE i AM NOT ABLE TO SCAN.  i HAVE BEEN TRYING TO RESOLVE THIS PROBLEM OVER 8 HOURS AND I' M GETTING SICK. I'VE TRIED EVERYTHING AVAILABLE ON TH

  • Light fringe around dark objects in HDR photo

    Hello there, My first post. A friend sent me a photo taken with an iphone and processed with Camera+ HDR filter. The very dark areas in the photo [here right around the window frame] have a light fringe around them. I am wondering how to remove the f

  • Inline footnotes in InDesign CC 2014

    In InDesign CS6 there was an easy way to make short footnotes as inline (run-on) footnotes. Increase its first-line indent of the second footnote, and set its leading to zero. I went from CS6 to CC 2014 and I have a problem with inline footontes. Now

  • Premiere Elements not Opening

    I bought Premiere Elements about a week ago. I installed it, opened and used it. Now, not but a week later, it will not open. I have a computer running Windows 8, I have no clue why it won't open. I uninstalled and re-installed it will no luck. Tried

  • Help Idoc Adapter

    If I have a WAS 640 can I define an idoc adapter or does it have to be with a proxy?  if I can generate an idoc adapter that parameters should keep in mind