1 / 13

Adobe Presentation

Adobe Presentation. Brijesh Patel | Working with AIR Native Extensions. What are Native Extensions?. Third party, native-code backed Actionscript API additions to AIR applications. Flash Builder. Android SDK & NDK. XCode. Adobe AIR. Visual Studio. Why Native Extensions ??.

Download Presentation

Adobe Presentation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Adobe Presentation Brijesh Patel | Working with AIR Native Extensions

  2. What are Native Extensions? • Third party, native-code backed Actionscript API additions to AIR applications Flash Builder Android SDK & NDK XCode Adobe AIR Visual Studio

  3. Why Native Extensions ?? • AIR is AWESOME !!! • Allows you to create cross platform applications • Rapid multiscreen development • A large feature set • But … • No access to device specific capabilities (Contacts, Notifications, Bluetooth,etc) • Waits for a native feature to mature before providing access to it • Porting existing applications to AIR might be a pain

  4. Bridging the gap !!! • Provide access to device specific features • Native developers can reuse existing code • Actionscript API set can be extended • Same interface can be used on different platforms

  5. Anatomy of an extension • A set of Actionscript classes • Associated native code for one or more target devices • A descriptor that contains deployment information • A signature to ensure secure delivery </desc>

  6. Utilizing an extension • Step 1: Add ANE • Project Creation Wizard - Build Path • Project Properties – Flex Build Path • Extension Information • Extension ID • Minimum AIR Runtime Version • Signed • Targets • Google Android (Android – ARM) • iOS • Windows • Mac

  7. Utilizing an extension • Step 2: Use ANE in code • Code hinting • Extension ID in App descriptor file

  8. Debugging • On device makes sense! • Debugging info from native code depends on ANE

  9. Package Settings • Where is it? • Project Properties • Flex Build Packaging • Flash Builder does for you: • Auto adjust package • ANE Validations • Extension ID • Native Library • Initializer • Finalizer • Developer can do: • Change package settings

  10. Simulation • Run on desktop • To run/debug mobile app on desktop, ANE needs to target the desktop OS !

  11. ANE for desktops • What you can do? • Computer intensive tasks • Hardware interfacing

  12. Demo • Mobile ANE usage • Android • iOS • Desktop ANE usuage • Windows • Mac

More Related