Home

This document is a cache from http://help.adobe.com/en_US/flex/mobileapps/developing_mobile_apps_flex.pdf


Developing Mobile Applications with Flex and Flash Builder

Document source : help.adobe.com


16
DEVELOPING MOBILE APPLICATIONS WITH FLEX AND FLASH BUILDER
Development environment
Last updated 9/8/2011
Choose application settings
Automatically Reorient
Rotates the application when the user rotates the device. When this setting is not enabled, your
application always appears in a fixed orientation.
Full Screen
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
applicationDPI
property of the
<s:ViewNavigatorApplication>
tag
or
<s:TabbedViewNavigatorApplication>
tag in the main application file:
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
firstView="views.HomeView"
applicationDPI="160">
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
Android device.
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.







Summary :

16 DEVELOPING MOBILE APPLICATIONS WITH FLEX AND FLASH BUILDER Development environment Last updated 9/8/2011 Choose application settings Automatically Reorient Rotates the application when the user rotates the device. If you want to target your application across multiple device types with varying screen densities, select Automatically Scale Application For Different Screen Densities. 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.


Tags : screen,mobile,dpi,flex,android,deices,scaling,density,alue,automatically,target,densities,specify





Terms    |    Link pdf-search-files.com    |    Site Map
   |    Content Removal Notice   
   |    Contact   

All books are the property of their respective owners.
Please respect the publisher and the author for their creations if their books copyrighted