Welcome to the developer release notes for Adobe AIR 2.6. This update includes enhanced mobile platform support for Android and iOS, and bug fixes related to security, stability, performance, and device compatibility.
|
|
Windows |
Macintosh |
Linux |
Android |
iOS |
|
Processor |
Minimum: Intel® Pentium® III 1GHz or faster processor Recommended: Pentium 4 2GHz or faster |
Intel Core™ Duo 1.83GHz or faster processor. |
Minimum: Intel® Pentium® III 1GHz or faster processor Recommended: Pentium 4 2GHz or faster |
ARMv7 processor with Vector FPU Minimum 550Mhz OpenGL ES2.0 H.264 & AAC H/W Decoders |
iPod Touch 3rd & 4th generation iPhone 3GS and iPhone 4 iPad |
|
Operating System |
Microsoft® Windows® XP Home, Professional, or Tablet PC Edition with Service Pack 2 or 3 (including 64 bit editions), Windows Server® 2003, Windows Vista® Home Premium, Business, Ultimate, or Enterprise (including 64-bit editions) with Service Pack 1, or Windows 7 (including 64 bit editions) |
Mac OS X 10.4, 10.5 and 10.6 |
Fedora Core 13, Ubuntu 10.10, openSUSE 11.3 |
Google Android™ 2.2, 2.3 and 3.0 |
OS 4 and higher |
|
RAM |
Minimum: 512MB RAM; Recommended: 1GB RAM |
Minimum: 512MB RAM; Recommended: 1GB RAM |
1 GB RAM |
256MB RAM |
|
|
Supported desktop environments |
GNOME and KDE |
|
Package management systems |
RPM or Debian |
|
Minimum GTK+ version |
2.6 |
|
Window managers |
Metacity (default for GNOME) and KWin (default for KDE) |
|
Transparency |
Support for transparency in AIR applications requires a compositing window manager and additional X server extensions. The following are supported: Compositing window managers: Beryl, Compiz, Compiz-fusion X server extensions: Composite, Render, Shape |
|
Flash Player |
Seamless (badge) installation from the web requires Flash Player 10.0.15.3 or later |
Libraries required AIR 2.6 on Linux
A list of libraries required to run AIR 2.6 on Linux are listed in the following Adobe Knowledge Base (KB) article: http://kb2.adobe.com/cps/838/cpsid_83888.html
Adobe AIR 2.6 installation and runtime user experience supports the following languages:
You must update your application descriptor file to the 2.6 namespace in order to access the new AIR 2.6 APIs and behavior. If your application does not require the new AIR 2.6 APIs and behavior, you are not required to update the namespace. However, we recommend all users start using the AIR 2.6 namespace even if you are not yet taking advantage of the new 2.6 capabilities. To update the namespace, change the xmlns attribute in your application descriptor to:
<application xmlns="http://ns.adobe.com/air/application/2.6">
AIR 2.6 supports packaging applications for iOS 4. iOS 3 is not supported.
The PFI command-line tool is no longer used to package iOS applications. iOS applications (IPA files) can now be packaged using the ADT command-line tool, which is located in the bin folder of the AIR 2.6 SDK. The command-line syntax for packaging IPA files is same as before.
Because AIR 2.6 does not support iOS 3 and armv6 devices, existing AIR for iOS applications cannot be updated to AIR 2.6. You can continue to support such applications using the Packager for iPhone available in Flash Professional CS5 and on Adobe Labs.
AIR 2.6 changes the way GPU rendering works on iPhone. The new rendering works the same as GPU mode on AIR 2.5 for Android. GPU mode is still enabled by specifying <renderMode>gpu</renderMode> in the application descriptor.
AIR applications on iOS 4 continue to run even when moved to the background. The AIR application is paused when the application enters the background and then unpaused when the application is brought back to the foreground. Prior to pausing the application, the flash.desktop.NativeApplication object dispatches a DEACTIVATE event. After it is unpaused, the flash.desktop.NativeApplication dispatches an ACTIVATE event.
It is now possible to capture audio from a microphone on a supported iOS device using the flash.media.Microphone class.
It is now possible to build an application that can browse for an image in the device camera roll using the flash.media.CameraRoll class.
It is now possible to capture a still image or video using the default camera application on the device using the flash.media.CameraUI class.
It is now possible for an application to access video from the device camera using the flash.media.Camera class. Both the front-facing and rear-facing camera can be accessed, but you can only use video from a single camera at a time.
It is now possible to use the higher resolution of iPhone and iPod devices with a Retina display in AIR Applications. To access the full 960x640 resolution, add the <requestedDisplayResolution> element to your application descriptor, setting the value to high.
In high-resolution mode, you can address each pixel on a high-resolution display individually. In the standard mode, the device screen will appear to your application as a standard resolution screen. Drawing a single pixel in standard mode will set the color of four pixels on the high-resolution screen.
The default setting is standard. If an application is run on a device without a Retina display, then the stage appears as 480x320 pixels regardless of the <requestedDisplayResolution> setting.
<iPhone> <InfoAdditions><![CDATA[...]]></InfoAdditions> <requestedDisplayResolution>high</requestedDisplayResolution> </iPhone>
In addition, you must add an icon of size 114x114 pixels to the application for use on high-resolution devices and add the path to the icon in the application descriptor:
<icon>
<icon114x114>icons/icon114.png</icon114x114>
</icon>
For testing on the desktop, you can use the predefined value "iPhoneRetina" with the adl -screensize switch.
It is now possible to display HTML content in an application using the flash.media.StageWebView class.
There are a few differences in StageWebView behavior between iOS and Android devices:
It is now possible to capture a bitmap representation of the content currently being rendered in a StageWebView view port using the drawViewPortToBitmapData() method.
This method can only be called by applications using the 2.6 application namespace and compiled for SWF version 11.
Important: Unless the stage property of the StageWebView is set, its contents will not be saved to the BitmapData object when calling drawViewPortToBitmapData(). Also, rendering HTML content that uses plugins (e.g. SWF, PDF) is currently not supported and the behavior will be platform dependent.
On iOS devices with high-resolution screens (iPhone 4, iPod Touch 4G, iPad), you must set the <requestedDisplayResolution>high</requestedDisplayResolution> element in the application descriptor for the captured bitmap to have the same fidelity as the rendering in the StageWebView object.
It is now possible to detect when a soft keyboard is open or closed and to open a soft keyboard programatically.
See InteractiveObject.requestSoftKeyboard(), Stage.softKeyboardRect, and SoftKeyboardEvent
This feature can only be used by applications using the 2.6 application namespace and compiled for SWF version 11.
It is now possible to disable the default behavior that adjusts the display to keep text fields in view when the soft keyboard opens. By adding the <softKeyboardBehavior>none</softKeyboardBehavior> element to the application descriptor, you can turn off the default behavior and provide your own logic for adjusting the display.
The Android USB drivers are in the install folder of the Windows AIR SDK. When you connect your Android devices to your machine, follow Microsoft's instructions to install the USB drivers. Some Android devices are not in the device support list. In these cases, you should contact your device manufacturer for the instructions to install the appropriate USB drivers.
It is now possible to debug an application running on an Android device via a USB cable.
Developer work flow using IDE
To debug a Flex Mobile application launch Flash Builder (pre-release build)
Application will get launch on the device and debugging session will start.
Text fields on Android now have two interaction modes. In the normal mode, the text field interaction is optimized for scrolling. In selection mode, the interaction is optimized for selecting text. A user can change mode by opening a context menu with a long press on the text field. The TextField object dispatches a textInteractionModeChange event when the mode changes.
See TextField.interactionMode, flash.text.InteractionMode, and Event.TEXT_INTERACTION_MODE_CHANGE
It is now possible to specifie an alternate URL for downloading and installing the AIR runtime on Android devices. If not specified, an AIR application will redirect the user to the AIR runtime on the Android Market if the runtime is not already installed.
If your application is distributed through an alternate marketplace (other than the Android Market administered by Google), then you might need to specify the URL for downloading the AIR runtime from that market. Some alternate markets do not allow applications to require a download from outside the market. This option is only supported for Android packages.
Currently the following market URL is supported:
Amazon market: http://www.amazon.com/gp/mas/dl/android/com.adobe.air
Example (the URL used below is just an example of an appstore):
adt -package -target apk -airDownloadURL "http://appstore.zzz.com/get/com.adobe.air" -storetype pkcs12 -keystore temp.p12 -storepass <password> HelloWorld.apk HelloWorld-app.xml HelloWorld.swf
This feature adds functionality to the NativeWindow class that allows developers to write applications that need to keep one or more windows above another window. A good example of such an application is an editor application which needs to present floating toolbar/palette in addition to the document window. Prior to this feature, application developers had to attempt to manage the z-order of the windows in their own code using alwaysOnTop, orderInFrontOf, orderInBackOf APIs.
See NativeWindow.owner, NativeWindow.listOwnedWindows(), and NativeWindowInitOptions.owner
Until the AIR 2.6 release the NativeMenu class had two events (DISPLAYING and SELECT) that were dispatched when the user was interacting with the menu. In the AIR 2.6 release a third event has been added, named PREPARING, with the purpose of helping the developer in the use case where the user is interacting with the menu using the keyboard shortcuts.
Before this event, if the developers wanted to programmatically update the state of the menu they had to use the DISPLAYING event. This was the correct behavior for most of the cases, where the menu was actually displayed, but for the cases where the users were interacting with the menu through the keyboard shortcuts this was not consistent with the event name.
Along with this problem there was another issue that made the DISPLAYING event to not function consistently across platforms. The problem is that when the user was using the keyboard shortcuts to interact with the menu the event was dispatched on Mac OS but not on Windows.
From now on for the cases where the menu will be accessed using the keyboard shortcuts the PREPARING event will be dispatched and the DISPLAYING event will only be dispatched if the menu will actually be displayed.
This change has been versioned to the 2.6 namespace, meaning all the AIR applications that use the new 2.6 namespace will be have access to the new functionality. The changes will not impact the AIR applications that use a namespace smaller than 2.6.
A new property has been added to the LoaderContext object which allows a client to specify the policy for how the Loader's load operation is to handle the decode of a loaded image. The client may specify that they want the image decoded immediately, or the decode may be deferred until the image data is needed (e.g. it is drawn, GetPixel is called, etc.)
imageDecodingPolicy may be set to the values specified by the new ImageDecodingPolicy class:
When ON_LOAD is specified, the COMPLETE event will not be sent for the load() until the decode has completed. The decode operation will happen asynchronously as part of the load operation.
The default policy is ON_DEMAND, which was the previous default behavior for load().
The requestedContentParent property is now available on the LoaderContext class. It is only available to players SWF version 11 or higher. When this property is set to non-null, the Loader will attempt to add the content to the specified parent when loading is complete. LoaderContext with requestedContentParent property set to a Loader will generate an IllegalOperationError with code 2914. The call may also fail with "SecurityErrorEvent with code 2047" if the parent's security context does not have access to the content's security content. If the attempt fails, Loader loading the content is added as the parent.
The parameters property is now available on the LoaderContext class. It is only available to players swf version 11 or higher. When this property is set to non-null, the LoaderInfo.parameters property for the loaded content (which is the same as the Loader's contentLoaderInfo.parameters) will be set to a copy of this Object. Effectively this is a way to forward parameters (or flashvars) from loading content to loaded content.
The parameters property can only take string values. Otherwise an error will be thrown with error code 2196.
It is now possible to set the network timeout period when using HTTP connections with a NetConnection object. Note that on Linux, the timeout is two seconds longer than the time specified.
Vector printing is now supported on Linux. Note that any printer page using a device font will be rasterized when printed on Linux regardless of whether vector or bitmap printing is requested.
Invoking ADT with the -version option will return the version number of the AIR SDK.
You can now use bitmap-based mouse cursors that run at the OS level rather than inside the display list.
See Mouse.registerCursor() and flash.ui.MouseCursorData
Following changes have been made to Screen Orientation APIs in 2.6 version of Runtime.
The swf is required to be compiled with the flag "-target-player=11" to make use of supportedOrientations API.
The following additional fixes have been included in AIR Android 2.6.0.1915:
Please refer to the following tech note for installer troubleshooting:
http://kb2.adobe.com/cps/403/kb403150.html
After reviewing the installation tech note, if you still encounter problems please visit our installation forum to ask questions and review other solutions.
AIR Installation Forum: http://community.adobe.com/t5/air/bd-p/air?page=1&sort=latest_replies&filter=all
The Adobe AIR forums are a great source for education and troubleshooting. You can interact with AIR community experts and Adobe employees on development topics, discuss and report problems and bugs found and solve troublesome installation issues.
Please visit us at: http://community.adobe.com/t5/air/bd-p/air?page=1&sort=latest_replies&filter=all
Adobe Community Help is Adobe's next generation help experience. It's an AIR application that provides the following features:
Community Help is installed by default in Creative Suite CS5 and Flash Builder 4. If you're using the AIR SDK separate from those tools, you can install Community Help yourself here: Install Adobe Community Help.
You can find links to all of the AIR documentation on the Adobe Developer Connection.
The AIR Help and Support page is a search portal for AIR information from Adobe and the AIR developer community. You'll also find great new articles and tutorials and links to current support issues.
In AIR 2 and later versions, installation logs for the runtime and for individual applications are created by default. The file is named "Install.log" on Linux and Windows. The file is named "system.log" on Mac OS. This log file is cumulative, meaning that a new log is appended at the end of the existing log file whenever an attempt, successful or unsuccessful, is made to install or update the AIR runtime or an AIR application. The size of the log file is limited to 0.5MB and the file is truncated when it becomes too large.
The location of this file differs from platform to platform:
To report a feature request, please submit and vote on ideas using the Adobe AIR Ideas website.
To report a bug, please report the issue using the Adobe AIR feedback bug feedback form.
To discuss issues and ideas, please visit our Adobe AIR forum
Sign in to your account