DEVELOPING MOBILE APPLICATIONS WITH FLEX AND FLASH BUILDER
Last updated 9/8/2011
Choose application settings
Rotates the application when the user rotates the device. When this setting is not enabled, your
application always appears in a fixed orientation.
Displays your application in fullscreen mode on the device. When this setting is enabled, the device's status
bar does not appear above your application. Your application fills the entire screen.
If you want to target your application across multiple device types with varying screen densities, select Automatically
Scale Application For Different Screen Densities. Selecting this option automatically scales the application and handles
density changes, as required, for the device. See "
Set application scaling
" on page 16.
Set application scaling
You use mobile application scaling to build a single mobile application that is compatible with devices with different
screen sizes and densities.
Mobile device screens have varying screen densities, or DPI (dots per inch). You can specify the DPI value as 160, 240,
or 320, depending on the screen density of the target device. When you enable automatic scaling, Flex optimizes the
way it displays the application for the screen density of each device.
For example, suppose that you specify the target DPI value as 160 and enable automatic scaling. When you run the
application on a device with a DPI value of 320, Flex automatically scales the application by a factor of 2. That is, Flex
magnifies everything by 200%.
To specify the target DPI value, set it as the
property of the
tag in the main application file:
If you choose to not auto-scale your application, you must handle the density changes for your layout manually, as
required. However, Flex adapts the skins to the density of each device.
For more information about creating density-independent mobile applications, see "
Support multiple screen sizes and
DPI values in a mobile application
" on page 115.
Connect Google Android devices
You can connect a Google Android device to your development computer to preview or debug the application on the
Supported Android devices
Flex mobile projects and ActionScript mobile projects require AIR 2.6. You can run or debug mobile projects only on
physical devices that support AIR 2.6. You can install AIR 2.6 on Android devices running Android 2.2 or later.