Android Apps With Adobe AIR
Android Apps With Adobe AIR
Android Apps With Adobe AIR
VS
JAVA: PROS
Established platform, widely accepted
Eclipse IDE officially supported and integrates well with Android SDK
JAVA: CONS
Many 3rd-party Java libraries do not work on Android
Inconsistent debugging
Browse to your Android SDK folder and launch Android SDK and AVD Manager:
[Android SDK] SDK Manager.exe
Make sure that under “Installed Packages” you have “USB Driver package”
installed
Select “Virtual Devices” option and click “New” to create a new Android
virtual device
Create new Android virtual device. Make sure to select Android 2.2 – API
Level 8 in the “Target” field
In Android SDK and AVD Manager, select the newly created virtual device and
click “Start”
Hopefully now you have a running Android emulator
PREPARING YOUR
ANDROID DEVICE
Enable USB debugging on your phone: Settings Applications Development
Check “USB Debugging” to enable it.
If developing/debugging on
an HTC phone, you need to
download HTC Sync
http://www.htc.com/us/support/
Connect your Android device to your computer via a USB cable
To install on physical device, run command “adb install [downloaded AIR file for
device]”. In my case, the full command is adb install
Runtime_Device_Froyo_20100930.apk
To install on virtual device, run command “adb install [downloaded AIR file for
emulator]”. In my case, the full command is adb install
Runtime_Emulator_Froyo_20100930.apk
PUBLISHING, PACKAGING
AND INSTALLING YOUR
ADOBE AIR APPLICATION
Download AIR for Android Extension for Flash CS5
(http://labs.adobe.com/technologies/air2/android/). You would have to
sign up to participate in the pre-release program.
If you just installed Adobe Flash CS5, restart your computer before installing
AIR for Android Extension for Flash CS5.
If you are not using Windows 7, launch Adobe Extension Manager CS5
normally, by going to Start Programs Adobe Extension Manager CS5.
If you are using Windows 7, use Windows Explorer to browse to Adobe
Extension Manager installation folder. On my computer, it is C:\Program
Files\Adobe\Adobe Extension Manager CS5/. Right-click on Adobe Extension
Manager CS5.exe and select “Run as Administrator”. If you skip this step, AIR
for Android Extension for Flash CS5 installation will fail.
In Adobe Extension Manager CS5, click “Install” and browse to the location
where you saved the downloaded copy of AIR for Android Extension for Flash
CS5. When extension installs, you should see it listed under Flash CS5
Launch Flash CS5 and load your AIR application (.fla file).
Go to “Flash” tab
Note the location of the .apk file created by the publishing process
To install on physical device, run command “adb install [name of .apk published file
from Flash CS5]”. In my case, the full command is adb install LearningLog.apk
CONGRATULATIONS!
IF YOU DID EVERYTHING CORRECTLY,
YOUR ADOBE AIR APPLICATION IS NOW
RUNNING ON YOUR ANDROID VIRTUAL
DEVICE
Additional Resources & LInks
Adobe AIR releases:
http://labs.adobe.com/technologies/air2/android/
http://www.evillens.com
http://www.wideopenlens.com