PizzeRIA AIR example

An AIR based evaluation application of an imaginary online pizza service is introduced in this section.


AIR, short for Adobe Integrated Runtime, is a cross-platform runtime environment that is rapidly revolutionizing the way that users and developers interact on the web. With AIR it is possible to create desktop applications that communicate directly with an embedded SQLite database, with the computer's filesystem and with the internet.

Starting with AIR 1.5, the AIR database can be encrypted for extra security.
 

The PizzeRIA AIR example:

(tags: Flex 3, AIR, AMF, Zend Framework)

The PizzeRIA AIR example is similar to the evaluation application of the PizzeRIA web example but works outside the browser as a standalone desktop application and uses the encrypted AIR database for offline evaluations.

The demo application shows how local order data can be evaluated and how the data can be easily updated with the latest online orders. The screencast below gives an impression of this extra functionallity.

(more: Installation, Application details)


( videoplayer : Apdev AS3 open-source videoplayer )

Installing the PizzeRIA AIR demo (uninstalling is explained below)

The easiest way to install the PizzeRIA AIR demo application (size approx. 750KB), is by clicking "Install Now" in the image below. This will also install the Adobe Integrated Runtime environment (15 MB for Windows / 23 MB for Mac / 13 MB for Linux) if necessary.


Alternatively the PizzeRIA AIR demo and the AIR environment can be downloaded using the following direct links:
Direct link to the AIR environment: http://get.adobe.com/air/
Direct link to the demo: PizzeRIA_AIR_demo_01.air

 

Installation aspects explained

On application install the following message pops up:

AIR install message
 

Publisher Identity: UNKNOWN

The publisher of this application cannot be determined.

Because the PizzeRIA AIR demo is published with a self-signed certificate, the publisher's identity is marked UNKNOWN.
For a real-world application a verification of the publisher's identity can be achieved by obtaining a Code Signing Certificate signed by a trusted third-party vendor.

Prices for trusted certificates start at $150 - $200 per year.

The following companies secure applications deployed on AIR:

It is also possible to sign an AIR application with Authenticode Certificates (a class 3 code signing certificate).

Further reading: http://blog.adamcreeger.com/2008/12/signing-adobe-air-files-with.html


System Access: UNRESTRICTED

This application may access your file system and the internet, which may put your computer at risk.

All AIR applications (with or without a code signing certificate) have this warning. At the moment it is not possible to offer an AIR application with restricted access.


This warning scares a lot of possible customers. It gives the impression that an AIR application is getting greater system access than the regular .exe file. Fact is that AIR has exactly the same access to the file system as the current user. Therefore it is important to run (AIR) applications in a restricted user account to minimize security risks and possible abuses.

Further reading: http://blogs.adobe.com/simplicity/2008/05/airs_unrestricted_system_access_warning.html


Uninstalling the PizzeRIA AIR demo

On all operating systems the installed PizzeRIA AIR demo can be uninstalled by double-clicking the downloaded file PizzeRIA_AIR_demo_01.air. Then select the option for uninstalling an installed application.


Alternatively:

Windows: go to Control Pane => Add Remove Programs, locate the PizzeRIA AIR demo and click 'Remove'

Mac OS X: drop the PizzeRIA AIR demo application in the trash

Linux: follow the general information in this link: http://blogs.adobe.com/air/linux/#uninstallapp


Deleting the local database data of the PizzeRIA AIR demo:

The PizzeRIA AIR demo uses the AIR SQLite database. The data in the database is not removed automatically and must be removed separately:

Windows: delete the following directory:

“C:\Documents and Settings\[userName]\Application Data\com.riamore.pizzeria.air.demo.[application ID]”

The directory to be deleted contains a subdirectory "Local Store" that contains the encrypted database "PizzeRIA_01.db"

Mac OS X: delete the following directory:

"/Users/[userName]/Library/Preferences/com.riamore.pizzeria.air.demo.[application ID]"

The directory to be deleted contains a subdirectory "Local Store" that contains the encrypted database "PizzeRIA_01.db"

Linux: follow the general information in this link: http://blogs.adobe.com/air/linux/#removedata

Deleting the encrypted local data of the PizzeRIA AIR demo:

The PizzeRIA AIR demo uses the AIR SQLite database. Encrypted data must be removed separately:

Windows: delete the following directory (ELS stands for Encrypted Local Store):

“C:\Documents and Settings\[userName]\Application Data\Adobe\AIR\ELS\com.riamore.pizzeria.air.demo.[application ID] ”

This directory contains four files: PrivateEncryptedData, PrivateEncryptedDatai, PrivateEncryptedDatak and PrivateEncryptedDatav.

Mac OS X: delete the following directory (ELS stands for Encrypted Local Store):

"/Users/[userName]/Library/Application Support/Adobe/AIR/ELS/com.riamore.pizzeria.air.demo.[application ID]”

This directory contains four files: PrivateEncryptedData, PrivateEncryptedDatai, PrivateEncryptedDatak and PrivateEncryptedDatav.

Linux: follow the general information in this link: http://blogs.adobe.com/air/linux/#removedata


Uninstalling the AIR environment (after the PizzeRIA AIR demo has been uninstalled):

It is also possible to uninstall the Adobe Integrated Runtime (AIR) environment.

Windows: go to Control Panel/Add Remove Programs, locate the AIR environment and click 'Remove'.

Mac OS X: use the Adobe AIR Uninstaller.app. This application can be found in /Applications/Utilities/.

Linux: follow the general information in this link: http://blogs.adobe.com/air/linux/#uninstall15