Air on Android Workshop

! Warning: this post hasn't been updated in over three years and so may contain out of date information.

Yesterday – Wednesday 27th October – I had the pleasure of presenting an introduction to AIR on Android workshop to the good folk of the dotBrighton user group. The workshop took the audience through details of using Flash Pro and FlashBuilder Burrito to develop basic apps that explored some of the AIR Android APIs.

UPDATE
In the workshop, I direct folk to sign up to Adobe’s prerelease site in order to access the AIR for Android extension for Flash Pro. This is no longer necessary as it is now available as a public beta on the Adobe Labs site.
END OF UPDATE

The Android phone I have – the HTC Desire – doesn’t support any sort of live video out, but using a clever program called Droid@Screen that Richard Leggett helped me find, I was able to achieve a roughly 1Hz output of the phone that could be displayed on the PC and thus broadcast to the internet during the workshop. Many people asked what the program was and how to get it. The source can be accessed at Jen Riboe’s Codaset page. I couldn’t find an online version of the compiled .jar file. So I’ve uploaded to my blog and you can access it here. To run it, on Windows you should just be able to double click on the icon via Explorer. On OS X and Linux, you may need to run it via the command line, but the syntax is trivial:

If you have problems, check out the Droid@Screen Wiki page.

If you want to play with the apps yourself, here are links to the installer files. The easiest way to install them is to follow these simple instructions:

  1. On your phone, press menu on the home screen, then select Settings -> Applications and make sure “Unknown sources”
    is ticked.
  2. Visit this page on your phone (its mobile friendly) and click on the link of choice
  3. When downloaded, install via the Package Installer

Screen Orientation 1

Screen Orientation 2

Accelerometer

Buttons

Pan

Rotate

Zoom

Gestures

Multitouch

Camera

A lot of the ideas (and code) that I used for my apps belong to Julian Dolce, who very kindly allowed me to reuse them. I shall upload the source files in a day or two once I’ve checked with him that he is OK with this.

And finally to finish off, the workshop was recorded in two parts. The videos of these are accessible below:

Part 1

Part 2