Skip to content


Air 2.0 beta NativeProcess.isSupported gotcha

If you wanna start playing with new AIR 2.0 there are a couple things you need:
1. Runtime
2. Air 2.0 beta SDK (installed on top of Flex SDK)
3. New app.xml descriptor namespace which is

xmlns="http://ns.adobe.com/air/application/2.0beta"

But if you want to launch a native app from air, they forgot to mention in the documentation that you need to add

<supportedProfiles>extendedDesktop</supportedProfiles>

to the same xml.

Now if you check

NativeProcess.isSupported

you should get true, which means you can run a native app. You don’t have to be packaging your air app throught ADT or do anything else to see this boolean to be true. It should work in FlexBuilder straight away. Packaging it up is probably a good material for another post. Hope that helps.

Share and Enjoy:
  • Print this article!
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • E-mail this story to a friend!
  • FriendFeed
  • LinkedIn
  • Reddit
  • RSS
  • StumbleUpon
  • Twitter

Posted in development.

Tagged with , , , .


4 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Elliot says

    hey mate, you mention in step 2. to override the flex sdk4 with the downloaded AIR beta 2.0 SDK. is this what you mean?

    Also how do you do these steps for a pure AS3 project in FB4?

    Cheers

  2. admin says

    Hi Elliot,

    Yes, you need to find where your current Flex SDK is and extract the AIR SDK to the same folder. If you are using FB4 you will have sdks folder, whereever you installed FB4. In that folder you are most likely gonna have 3.4 SDK and 4.0. I would use 3.4, unless you want to experiment with new 4.0.

    For a pure AS3 project I am afraid you won’t be able to use AIR, it has to be a Flex app published to the desktop.

  3. Bamboo says

    Thanks a lot. this article had been helpful.

Continuing the Discussion

  1. Setting up AIR 2.0 Beta in FDT – Lean Mean Fighting Machine Tech Blog linked to this post on January 27, 2010

    [...] You may also need to enable extended desktop support in your descriptor file by adding <supportedProfiles>extendedDesktop</supportedProfiles> (thanks Tom) [...]



Some HTML is OK

or, reply to this post via trackback.