Embedding Tomcat and BlazeDS in an AIR 2 Application

This was by far my most popular sample during the beta. So, here is an updated version for AIR 2 GA.

In this sample application, Tomcat and BlazeDS are embedded as part of the native installer. The first time you run the application, Tomcat is automatically copied to your applicationStorageDirectory from where the AIR application starts it. You can start and stop Tomcat manually from within the application, but in a real life application you would probably want to start Tomcat automatically when the AIR application starts.

[Read more...]

Tomcat Launcher using AIR Native Process API — Update for AIR 2 GA

I updated my “Tomcat Launcher” sample application for AIR 2.0 GA.

“Tomcat Launcher” allows you to start / stop Tomcat and view the standard output log without opening a DOS box or Terminal window. It also allows you to open that log in your default Text Editor which is another new feature of AIR 2.0 that I covered in the “AIR2Excel” sample application. Tomcat Launcher also provides a generic example showing how to use the AIR 2.0 native process API to execute Java code.

[Read more...]

"AIR 2 Excel" Sample App Updated for AIR 2 GA

I updated the “AIR 2 Excel” sample application for the official AIR 2 launch. “AIR 2 Excel” demonstrates different techniques for AIR/Excel integration, including the new AIR 2 File.openWithDefaultApplication() API.

[Read more...]

"Voice Notes" Updated for AIR 2 GA

To mark the official release of AIR 2, I’m upgrading the samples I built during the beta, starting today with “Voice Notes”.

Voice Notes is a sample application that leverages the new Microphone API. The application lets you record voice notes and store them in a SQLite database so that you can replay them later.

Make sure you have the AIR 2 runtime installed (you can download the AIR 2 runtime here), and install the application using the badge below:

Please upgrade your Flash Player This is the content that would be shown if the user does not have Flash Player 9.0.115 or higher installed.

View Source (right click) is enabled.

NOTE: You can download the AIR 2 SDK here.