This article is translated by riameeting. You can reprint it as needed, but please enter the original article and the translation address. Thank you.
Original article address:
Http://blogs.adobe.com/cantrell/archives/2011/03/everything-new-in-adobe-air-2-6.html
Adobe AIR 2.6 is now available (runtime and SDK ). currently, the focus of 2.6 is to balance the implementation of Android and iOS functions (Note: air2.5 features were mainly developed for Android platforms for some reasons ), of course, we also quietly provide some good features for SDK, Android, and desktop performance.
The following is a list of new features provided by air 2.6.
- Asynchronous bitmap DecodingThis feature will allow us to start another thread outside the main thread to complete bitmap decoding. Set the imagedecodingpolicy attribute of loadercontext to imagedecodingpolicy. on_load to enable asynchronous bitmap decoding. This allows your applications to be more flexible and animations to be smoother.
- Exclusive window(Owned Windows)The exclusive window is applicable to situations such as the color palette tool. The exclusive window feature allows you to associate a window with other windows, so that the exclusive window is always placed in front of its owner (sorted Based on the Z axis ). Before we have exclusive windows, we need to implement this function using many APIs, such as activation events, orderinbackof, orderinfrontof, ordertoback, and ordertofront APIs. But with the exclusive window, these things are much easier. You only need to use the nativeappswinitoptions object to pass the owner to a new window, and then the AIR runtime will help you implement the following things. Very simple.
- StagewebviewBitmap capturing inThe drawviewporttobitmapdata method provided by stagewebview allows you to draw a stagewebview object to a bitmap. This feature may be used in two ways. The first and most common case is to capture a screen for the stagewebview object, and the second case is to locate the Flash content above the stagewebview. Since it is impossible to place Flash content on a stagewebview object (Flash content is always drawn below), once you have such a requirement, You can first capture the current stagewebview, use this bitmap to replace stagewebview, and then you can place the Flash content on it.
- IOSMicrophone supportNow you have provided an API for iOS microphones.
- IOSWebpage view in(Stagewebview). Just like in Android, stagewebview can now work in IOS (Note: with this mechanism, we can display HTML pages in applications, it is a bit similar to the fact that we occasionally use IFRAME to display HTML in flex development,StagewebviewNative support).
- IOSMulti-task support. With air2.6, our air app can capture activation or inactivity events when users enter or leave the app on IOS. The AIR application can be restored rather than restarted (unless the application is killed by the operating system for some reason ).
- IOSSupport for Retina Display. It is self-evident that 2.6 supports iPhone 4 and iPod Touch (326ppi) with high-resolution screens, and icons with higher resolution.
- IOSCamera,Cameraui,And Cameraroll Supported. Camera and cameraui APIs can now be used for iOS, just like on Android. (If you do not know these APIs, readHow to Use cameraui in a cross-platform way).
- IOSHardware accelerationLike on Android, air also enables hardware acceleration on iOS to provide better performance.
- PFIChangedADT. Note that the previously used PFI (packager for iPhone) is outdated and its functions have been integrated into ADT. Note: you may remember that we need to use this tool to package the FLASH application on the iPhone ). ADT can now be used to package air files, local desktop installation files, Android applications, and iOS applications. in addition, IOS apps (IPA files) can be compiled and copied to iOS devices using ADT and iTunes on Windows platforms. Very simple.
- Configurable keypad Activation. When the text input box in an air application on a mobile device gets the focus, a soft keyboard usually appears, and how the keyboard masks the text input box, the UI will automatically move to ensure that the text box is not covered. This action is configurable now. By default, if 2.6 is used, nothing will change. developers can use the application description settings to change the default settings. If you use <softkeyboardbehavior> and set it to none, the UI will not be automatically moved. If the default behavior is used, the developer can listen to the softkeyboardactivating event of stage and use the softkeyboardrect attribute to modify the layout of their applications.
- Control screen keyboard display by programming. Use the new requestsoftkeyboard () method on interactiveobject. You can also use the needssoftkeyboard and softkeyboardinputareaofinterest attributes to control the display of the screen keyboard in a complete way.
- SupportedAmazon Android Market. The AIR application built based on the air 2.6 SDK can be released to the new amazin appstore for Android. Click this article to View Details:Air 2.6 applications and the Amazon appstore for Android.
- LinuxSupport for vector PrintingIf your printer works in Linux, you can use air vector printing.
- Local cursor support. This is a big feature. If you have tried to change the cursor display in the flash or flex project, you will know that it will cause some problems, such as performance problems, moving the mouse to cause CPU usage to rise, and so on. Based on air2.6, developers can use a real local cursor. The new mousecursordata class can create a local cursor through one or more bitmaps and one coordinate point.
- PassUSBInterface to complete device-based debugging(Android only)Now you can debug it without using WiFi. You can debug it through a USB connection (Note: It is really good news, not always able to find the LAN WiFi that can be used for debugging ).
- Details of local menu events. This is a small adjustment, but it is important to add a number of event types so that we can more carefully control the display of local menus and event processing.
- AndroidEnhanced text supportFor Android, air 2.6 now supports text scrolling, Text Selection, and text context menus (CUT, copy, and paste ).
- Netconnection. httpidletimeoutIn air 2, we added the URLRequest. idletimeout and urlrequestdefaults. idletimeout attributes. In Air 2.6, we added the same support for netconnection, which is the new httpidletimeout attribute.
- BoundAndroid USBDriver(Windows)The air 2.6 SDK is bound with a Windows Driver that supports most Android devices, making development and testing easier.
- SupportedVipaccess: // URI. Vipaccess: // URI is used to call the Verisign's VIP service.
- -VersionFlag for ADT. You can use this compilation parameter to start different versions of ADT.
We will bring you more about air2.6 and mobile development later.
Related Topics: Go to Android [2]: FAQs about air for Android