Building Android apps with Adobe AIR

Last week I created my first ever mobile application. It is an AIR app for Android. The app is called aTabSplitter because ahh, it just helps you to split a restaurant bill between many people. Here are some screenshots with the two screens of the app:

Developing this small application was quite entertaining. But it teach me a few lessons too:

Finally, this week I had the time to clean up the UI and code a little bit, and put together a video (the making-of type of video). Here is the video (you can watch the video in higher resolution here):

If you want to have a look at the code (although I warn you it is not production ready) you can download this project file. If you want to run this on a computer without a touch screen you need to make couple of changes (work with MouseEvents instead of TouchEvents, change root node in main.mxml from Application to WindowedApplication).

I can’t wait to have AIR for Android out and see what people will build!

Update: if you fancy the Belorussian version of this post, check this out.

Comments

11 Responses to “Building Android apps with Adobe AIR”

  1. 1. Lionel on May 19th, 2010 10:52 pm

    Very nice. Thank you. Can you share more information about the compilation process to Android? Did you use tools like Package Builder?

    Also, was Catalyst necessary here? Or just a time saver? Could you have exported FXG from Illustrator and made the components using the FXG?

    Thank you for sharing

  2. 2. Mihai Corlan on May 20th, 2010 12:17 pm

    Hey Lionel,

    I used the command line tools from the Android SDK and AIR SDK to compile the app into an APK and then install tha APK file to the phone. And I wrap this in a script for convenience.

    I used Flash Catalyst because it was easier for me. Being able to design a new button in Illustrator and just copy-paste it on Flash Catalyst and then make a button and grab the code moving to FB was easy.

  3. 3. bennett on July 21st, 2010 7:28 am

    hey there – I imported your app into Flash Builder but it’s telling me I lack the “Flex 4.1 Android” SDK – where do I get it?
    cheers,
    bennett

  4. 4. Mihai Corlan on July 21st, 2010 10:59 am

    @bennett

    You got this error because on my computer this project uses a Flex SDK named Flex 4.1 Android.

    All you have to do is to download Flex 4.1 SDK (http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4) and then grab the AIR 2.5 SDK from the pre-release site (http://labs.adobe.com/technologies/air2/android/). Copy the content of the AIR SDK on top of the Flex 4.1 SDK, and then use Flash Builder’s Properties Panel to add this SDK to your list of Flex SDKs.

    Finally edit the properties for the project and select the SDK you’ve just added as the one used for compiling the project

  5. 5. aTabSplitter pentru Android - Android Romania on July 30th, 2010 1:34 pm

    [...] Mihai Corlan ( site oficial ) Preț: Aplicaţie gratuită Versiune: 1.0 Descriere: O aplicatie simpla care te ajuta sa imparti [...]

  6. 6. brian on September 26th, 2010 9:33 pm

    The Air 2.5 for Android SDK pre-release is out now, but the spark controls are not compatible. I cannot get the simple HelloWorld example below to work:

    I can get an Action Script only HelloWorld to work.

  7. 7. Great Wall of HOW » All about Android Apps on January 12th, 2011 9:09 am

    [...] Building Android apps with Adobe AIR : Mihai Corlan [...]

  8. 8. Jeff Spicer on February 2nd, 2011 11:30 am

    Hey, your design is good. Can’t find anywhere on the web about how to get an app from FB to the phone. Command-line? 4.1, 4.1 Android? Not sure about all that. Is there another vid that shows step-by-step how to get it there because you’re good at making video tutorials.

  9. 9. Mihai Corlan on February 2nd, 2011 3:18 pm

    @Jeff Spicer

    Have a look at Flash Builder Burrito (http://labs.adobe.com). It has support for creating APK files and deploy them to the connected devices (through the USB cable).

    You’ll find articles about this on Adobe.com

  10. 10. oleg on September 7th, 2011 4:48 am

    do you mind sharing the script(s) that you used to compile into APK file…thanks…oleg

  11. 11. Ed on September 25th, 2011 3:27 pm

    Great post,very enjoyable read,and I agree with most of what you say,and by the way,here is a great info about DVD Catalyst 4

Leave a Reply




Switch to our mobile site