Not yet rated

Problem

I would like to see an example of how to use the "captive runtime" feature in AIR 3 to develop an application that does not require that the AIR runtime be installed on the consumer's device.

Solution

You could build such application since AIR 3.0 only (currently in the Beta stage) using introduced Captive Runtime feature. To use Captive Runtime on the Android, you should select the target "apk-captive-runtime" while writing the ADT command line: adt -package -target apk-captive-runtime ...

Detailed explanation

Since AIR 3.0, you could package your AIR application with all AIR runtimes needed to run app with help of the new feature "Captive Runtime". So, your application will be able to run without AIR runtimes installed. This is possible on mobile and desktop platforms.

Instructions for using the Captive Runtime:

You should load and install AIR runtime SDK first.

Next you should add the " swf-version=13" to the compiler arguments.

Next you can use ADT command line tool to package your app. 

To build  Captive Runtime app for Android, you should select the target " apk-captive-runtime" while writing the commands for ADT:

adt -package -target ( apk | apk-debug | apk-emulator | apk-captive-runtime ) ( CONNECT_OPTIONS? | -listen <port>? ) ( -airDownloadURL <url> )? SIGNING_OPTIONS <output-package> ( <app-desc> PLATFORM-SDK-OPTION? FILE-OPTIONS | <input-package> PLATFORM-SDK-OPTION? )

Above commands are from the Andrew Trice's   blog post - you could read more about Captive Runtime feature there.


+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes