Create your first AIR application for Android in Flash Professional
To develop AIR applications for Android, you must download
the Flash Professional CS5 extension for Android from Adobe Labs.
You must also download and install the Android SDK from the Android
web site, as described in: Android Developers: Installing the SDK.
Create a project
Open Flash Professional
Create a new AIR for Android project.
The Flash Professional
home screen includes a link to create an AIR for Android application.
You can also select File > New, and then select the AIR for Android template.
Save the document as HelloWorld.fla
Write the code
Since this tutorial isn't
really about writing code, just use the Text tool to write, "Hello,
World!" on the stage.
Set the application properties
Select File > AIR Android Settings.
In the General tab, make the following settings:
On the Deployment tab, make the following settings:
Certificate: Point to a valid AIR code-signing certificate.
You can click the Create button to create a new certificate. (Android
apps deployed via the Android Marketplace must have certificates
that are valid until at least 2033.) Enter the certificate password
in the Password field.
Android deployment type: Debug
After Publish: Select both options
Enter the path to the ADB tool in the tools subdirectory
of the Android SDK.
Close the Android settings dialog by clicking OK.
app does not need icons or permissions at this stage in its development. Most
AIR apps for Android do require some permissions in order to access protected
features. You should only set those permissions your app truly requires
since users may reject your app if it asks for too many permissions.
Save the file.
Package and Install the application on the Android device
Make sure that USB debugging is enabled
on your device. You can turn USB debugging on in the Settings app
under Applications > Development.
Connect your device to your computer with a USB cable.
Install the AIR runtime, if you have not already done so,
by going to the Android Market and downloading Adobe AIR. (You can
also install AIR locally using the ADT installRuntime command. Android packages for use on Android devices
and emulators are included in the AIR SDK.)
Select File > Publish.
Flash Professional creates
the APK file, installs the app on the connected Android device,
and launches it.