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

Similar Messages

  • Shared codebase for both mobile and web applications?

    I've been developing a mobile application for a while now. It runs on iOS and Android as well as on the desktop as an AIR app. This is great and I'm very excited about it. However, last week I was asked why I couldn't export a version of the app that ran within a web browser. I said that I assumed I could and that I would look into it.
    But why would you want to run mobile code on the desktop?
    A couple of reasons:
    Greater re-use of code. This doesn't make sense in all cases but it does in many cases. (I won't elaborate because I think this is self-evident. If you disagree I'd be happy to talk about it but I'd rather not clog this description with it.)
    Quicker/easier client demos. Rather than having to install an apk or an ipa on a mobile device, I can just send a URL.
    So what have I found? Well, from what I've tried so far.. it.. doesn't work. Or rather I haven't been able to make it work.
    I started by creating a Flex Library project for all shared code. Then I created 2 application projects that reference it- one for mobile and one for web. The mobile project works fine but the web project does not. Here's what I've tried so far to make it work:
    I tried adding the mobilecomponents.swc and the mobile.swc theme to my web project so that Flash Builder knows about MobileSkin (and other mobile-only classes). This enables my app to compile but when I launch it immediately throws a runtime error inside of UIComponent: VerifyError: Error #1014: Class flash.text::StageText could not be found. I've found very little about this error, and the one tip I did find (adding the --swf-version=13 compiler option) does not work.
    I tried using conditional compilation to control which class my skin components inherited from: MobileSkin or SparkSkin. This was just a quick experiment to see if it worked. I know it's disgusting and not a production solution. My thinking though was that if MobileSkin was really just an optimized version of SparkSkin, my skins should be okay inheriting from either. This didn't work right away- app wouldn't compile b'c certain methods were missing (ex. layoutContents) and so I bailed on it because it felt dirty to begin with.
    I tried replacing MobileSkin with UIComponent as the super class for all of my skins thinking that MobileSkin was probably just a lightweight subclass of UIComponent anyway. This approach resulted in some compiler errors at first (ex. no layoutContents method, no measuredDefaultWidth/measuredDefaultHeight properties, addChild vs addElement, etc.). Once those issues were resolved the app compiled but crashed with runtime errors inside of UIComponent's "getState" method. (Looks like MobileSkin overrides this method to prevent UIComponent's default behavior.)
    So none of those approaches have worked for me so far... but what about you guys? I have no hopes of Adobe reading this thread or responding to it in any way, but I would love to hear from other people in the community. Have you encountered this issue yet? Were you able to make it work or can you spot any obvious oversights I've made in the methods I mentioned trying above? Thanks in advance if you can.

    Update: I've been able to make progress with the first route mentioned above: adding the mobilecomponents.swc and the mobile.swc theme to my web project
    Turns out that Flash Builder had led me wrong in this regard. Adding the mobile SWCs to your Library project with the "merged into code" setting results in the compiler warning:
    The swc '/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/frameworks/themes/Mobile/mobile.swc' has style defaults and is in the library-path, which means dependencies will be linked in without the styles.  This can cause applications, which use the output swc, to have missing skins.  The swc should be put in the external-library-path.
    Seeing this the first time, I changed my linkage type to "External" and the warning went away. Then in my web project, I also added the mobile SWCs and set the linkage type to "merged into code" there. Flash Builder seemed happy with that approach, but upon running my application I got bizarre runtime errors (as mentioned above).
    Turns out that my first attempt was the correct way. Set the linkage type on the library project to "merged into code" and then don't re-link from your web project. Flash Builder will warn you about it but ignore the warning. Things seem to work pretty well for the most part now! I have an issue or two to look into (ex. List component doens't scroll) but things look pretty promising overall!

  • Steps to setup for my  Java Swing Desktop Application on Macintosh

    hi guys,
    I need help from all of u to create the setup for my Desktop application (developed in swings) on Macintosh. pls give me the references at least. how to approach the tools.
    its urgent...please....
    thanks in advance.
    -siva

    hi guys,
    I need help from all of u to create the setup for my Desktop application (developed in swings) on Macintosh. pls give me the references at least. how to approach the tools.
    its urgent...please....
    thanks in advance.
    -siva

  • Publishing mobile and desktop applications - Android APP

    I successfully published an .apk to my android phone, but in the message "The APK was was successfully packaged NOTE The application has been packaged with a shared runtime.
    Then I get a message on my phone that I need to install Adobe Air on the phone,
    instal, accept, success then select the app icon on the phone screen
    app opens to correct page but the dimensions of the stage are small and the text where I have buttons is way too small to tap by finger. How can I make the stage responsive so I can pinch and make bigger?
    The phone is a Samsung Galaxy exhibit screen size is only 3.5 x 2.5 inches approx.
    RMD

    Hi
    I don't think it would be possible to do this much of personalization based on device through which a page is being accessed. We were also having similar kind of requirement wherein we need to display the data of a self service application page on to mobile device. As in mobile device number of fields that can be displayed in a good manner was very less so we developed a complete separate pages that were specially designed as per mobile device only.
    Thanks
    AJ

  • Known Issue: Setup warnings for Windows 10 SDK, Emulators for Windows Mobile, and Tools for Windows 10 Universal Apps (Windows 10 Insider Preview SDK and tools, April 2015 release)

    When you install Visual Studio 2015 when not connected to the internet, for example from an ISO, you may receive warnings after setup completes for Tools for Windows 10 Universal Apps, Windows 10 SDK, and Emulators for Windows Mobile. These warnings include:
    This product did not download successfully: The server did not return the file size.
    This product did not download successfully: Signature verification failed on downloaded file.
    This product did not download successfully: HTTP Status 502: The server….

    To fix this issue, your computer must be connected to the internet to download these components.
    Make sure your computer is connected to the internet.
    Open Control Panel, and select Programs and Features. 
    Select Microsoft Visual Studio 2015 RC, click Change, and then click
    Modify.
    Select the feature “Universal Windows App Development Tools”, and click
    Update.

  • Web application and desktop application?

    Hi everyone,
    I am new to this platform.I have a basic doubts that whats the difference between developing application in flex as a web application and desktop application from programming point of view?Can we use same code in both cases?
    Please guide me....
    Thanks

    Hi and welcome,
    The main difference between a web application and a desktop application is that web applications do not have access and can't manipulate your local system ( you can't open a window that displays all your local files, you can't delete, rename, edit local files and so on ). Obviously, this is just one difference, there are many more ( the best would be if you google for "web aplication vs desktop application" because the same rules apply for 99% if not all the platforms you can find out there ).
    Desktop applications can have full control of your local system ( obviously, we have to take in consideration the platform we are using because since AIR is quite new in the desktop application field it is also more limited than other languages that have been used successfully to create desktop applications for years and year; like ce C# or C++ and so on ).
    Another important difference is that desktop applications usually need to be installed in order to function where on the other hand, web applications can run in the browser without you having to install the aplication you are about to view on your computer ( in some cases, like of the Flash and Flex platforms, you only require a "special player" that can display the content you are trying to access... for Flash and Flex applications you need the Flash Player installed for your browser ).
    So, before jumping into a project/platform you need to know your target. If you goal is to offer a fast, easy to access and no install required application to your users then you'll usually go with a web application. If your application needs to work with local files, maybe local databases, or it needs more control over the user's PC and so on, then you'll most likely go with a desktop application.
    With kind regards,
    Barna Biro

  • When frequently switching between mobile and desktop view

    When I frequently switching between mobile and desktop view I have to open the layers every time since they get closed/collapsed. Adobe may need to fix it for the next version.

    You can use CTRL+# to switch between Code and Design View.
    By the way, this is the Dreamweaver Application Development forum which deals with questions about using server-side scripting languages like PHP or ColdFusion. General Dreamweaver questions should be posted in the regular Dreamweaver General Discussions forum.
    And while I´m at it: please use descriptive headlines such as "how to switch between Code and Design View" for your posts -- mentioning your screen name "Goula129" is not helpful to other users.

  • Driver Setup for PXI 2569 and PXI 2529 in Switch executive

    Hi,
    What sould be tha "Driver Setup" for PXI 2569 and PXI 2529 in Switch executive under 'Driver Session"
    Regards!!!
    Vineet Shukla

    Hi Vineet,
    You do not need to insert anything under Driver Setup.  Anytime you are using NI switches, you can simply click Configure NI Switches when creating a NI Switch Executive Virtual Device to configure the topology settings of those switches.
    Just so you know, you can insert information under Driver Setup, and then you wouldn't have to use the Configure NI Switches wizard.  More detail on what to insert under Driver Setup can be found in the following KnowledgeBase:
    How Do I Create a Virtual Switch and Use it in my Application?
    http://digital.ni.com/public.nsf/websearch/A1F0D6A3357E14B386256E4B0071FDA2?OpenDocument 
    In short, you would type "Topology:" followed by the topology name such as "2569/100-SPST" or "2529/2-Wire 4x32 Matrix".
    Let me know if you have further questions or if this does not resolve your issue!
    Chad Erickson
    Switch Product Support Engineer
    NI - USA

  • First I got a wrong password for the network and the application error after a while that I wanted to enter the correct password no longer have access to network settings

    First I got a wrong password for the network and the application error after a while that I wanted to enter the correct password no longerhave access to network settings

    Unfortunately, it says I can't delete anything without the missing password.

  • I am trying to install itunes for my mobile, and I keep getting the message "You do not have administrator rights, please contact the system administrator to preform an update."  I have it set as adminstrator as the user.

    I am trying to install itunes for my mobile, and I keep getting the message "You do not have administrator rights, please contact the system administrator to preform an update."  I have it set as adminstrator as the user. I am running Windows 7 Ultimate. Help please?

    Thanks, but I've done that several times & it still says I need administraive privileges. I had itunes installed with no problems until I did the latest update. After that it just disappeared, so I tried reinstalling. Now I can't sync my phone. This is so frustrating!

  • Document Types Setup for Expense Approval and Payable Invoice

    Hi,
    Can anyone please suggest Document Types Setup for 'Expense Approval' and 'Invoice Approval' and its tables related to the same. Table storing its document_type_code and wf_approval_itemtype as we have for PO_DOCUMENT_TYPES_ALL table for Purchase Order.
    Thank You.
    Regards,
    Meghana

    Hi
    It could be because of main memory problem... so Restrict your selections and do the statistical setup
    by the way how many comp codes you have? restrict with comp codes or doc ranges
    Thanks,

  • I tried your Webify Me on mobile and desktop mac ... it only ends up in a Forbidden page !!! wasted 15mins of my life...

    I tried your Webify Me on mobile and desktop mac ... it only ends up in a Forbidden page !!! wasted 15mins of my life...

    -> Type '''about:config''' in the address bar and press Enter
    * When you see a Warning, click '''I'll be careful, I promise''' button
    * In the '''Filter bar''', type ''network.http.sendRefererHeader''
    * If the preference ''network.http.sendRefererHeader'' appears in BOLD text, right-click it and choose '''Reset'''
    Check and tell if its working.

  • Adobe Air for iOS and Android: FlasCC or Native Extension?

    Hi all,
    Who know - what provide better perfomance. FlasCC or Native Extension? For example for Math calculations, bitmapdata modification and etc.

    Well nothing prevent you from mixing flascc with native extension.
    Also, I think that you can also use domain memory in AS3 with the Bytearray class (not sure about that).
    Flascc vs normal as3 is mostly a question of language (portability) Do you want to write as3 or c++?
    Native extension give you speed and native platform access(platform specific feature).
    So, you should think about it this way:
    AS3, run in flash and air. Is sandboxed. Can use domain memory, but it's a bit harder to leverage than flascc.
    Flascc, run in flash and air. Is sandboxed, Can use domain memory. Give you the potential of leveraging the hundreds of opensources lib already out there.
    Native extension, run ONLY in air. Is not sandboxed. Native memory management. Also let you leverage the c++ lib. 
    The best (in my opinion) is to write native code for mobile and desktop (no air or flascc involve) and use flascc for the flash/web platform. It's harder, because you have write portable native code (lots of abstraction), but you mostly have the same problem with native extension.

  • 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.

  • 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.

Maybe you are looking for

  • Oracle bi publisher report for apex - Report Layout

    Hi There, Navigation: Home>Application Builder>Application 20>Shared Components>Report Layouts I created rtf template for a Report Query. It worked fine upto certain point. However at some point, if I make a minor modification to the layout it is not

  • Best Practice SAP HANA Unify tables

    I have 2 tables from differents systems With The same structure . We need unify. It´s possible Do It with Calculate View, and after the start this analytics and anothers Calculate View ?. Same Name, and different Schema Thanks

  • OO ALV validation check without event DATA_CHANGED and results via popup

    Hi Gurus, I'm working on SAP ECC 6.0 and I'm facing a problem during the ALV validation check. My requirement is to show an ALV with one editable field. In addition I have to pre-initialize this field in order to give a reference value to the user, b

  • White screen in CIC BP

    Hello all, I am working on the CRM IDES system. When I try to login to CIC, I manage to login but a white screen appears in the application area. I have checked the standard customization settings. Does anyone have a clue? Thanks

  • Non Cumulative keyfigure

    Hello Gurus, what customisation should i have to do if i have to use non-cumulative keyfigure in cube. What is the validity table for non-cumulative keyfigure of non-cumulative cube. hope to have details.. Regards, BPNR