How to install Adobe Air applications on Android Emulator?

Everyone is talking about Adobe Air on Anroid devices, but the answer to the question  “How can I test my application without buying an android device?” is not very clear. There are many air applications working on real devices but I could not find a specific tutorial working on emulator and decided to write a brief one :)

1. Download the latest Android SDK from this link.http://developer.android.com/sdk/index.html

2. Extract the folder on your hardrive .

3. Click Setup.exe

4. At this screen you should select to download the package “Usb driver package revision x”.

5. From left menu select Virtual Devices and click New button. In new popup  select Target as “Android 2.2 – API Level8” and fill other required fields as you wish. Then click Create AVD.

Hint : Selecting skin as default(HVGA) will speed up your emulator speed .


6. Select your virtual device then click start . Only one click left to launch your emulator;) Emulator is not as fast as real devices, so you have to wait a little…

7. Do not turn off your emulator.We will install Adobe Air on it :) Sign into Adobe Air Prelease program.  Download AIR 2.5 Runtime – Emulator [For Eclair][05/20/10].  There is also an emulator  version for Froyo 2.2, but this version is not working properly.

8.Copy your downloaded Runtime_Emulator_Eclair.apk file to tools folder under your AndroidSDK folder.

9.Open your command prompt (start–>search> cmd.exe) and write your commands until you reach “tools” folder under your Android files folder. Type the following :  adb install “your apk file” then press enter!  You will see screens like these:

10. Let’s control our virtual device.

– Click launcher icon on screen (16 small squarea :)) —>Settings —> Applications —> Manage Applications

– It is there!

11.  Now it’s time to make an Air-Android application with Flash CS5.  If you logout, sign into Adobe Air Prelease program again:) Download AIR for Android Extension for Flash CS5 and install it.

12. Create a new Air Android application from template :

13 . Go to File —> Air Android Settings.

14.  General part is about application main settings like name,orientation,output name etc.Let’s pass to Deployment part.

15. If you want to learn what certification means,  you can take a look at here.  Since I don’t want to sell my “Hello Android” application I just create a dummy certificate.  Click create button.

16.Select both checkboxes on publish settings to install our application without command prompt. Again we faced with our famous “tools” folder :) There is a file named adb.exe in this folder so let’s browse it!

17. Then predict what is the next step :P  Don’t afraid click publish!

18. Take a look at your emulator what you see ??? Trust Adobe accept the terms of aggreement :)

19. Yes, its response is too slow but it is working :) Say “Hi!” to our first Hello Android application . Hope this tutorial helps to you!

2 Comments

  • Shyam June 9, 2010

    Hi ,

    Nice one , it helped me, actually i was facing problem with runtime, i installed latest android sdk then my problem got resolved..

    well can u post step step by tutorial for making and flex application to apk file . this would help lots of people.

    thanks,
    Shyre..

  • Michael June 12, 2010

    Thank you!

    For an update, I could not get Runtime_Emulator_Eclair_20100517.apk to work, I switched to Runtime_Emulator_Froyo_20100603.apk ( 6.11.10) and got it working.

Leave a Reply

*

This blog is kept spam free by WP-SpamFree.