Android exposes a number of useful URI protocols to AIR for standard operations such as mapping, sms, and telephone. Defining a custom URI for our application allows it to be invoked from anywhere on the system: through the web browser, email, or even a native application. Custom URIs provides an alternative method of invoking an AIR application.
We will create an application that can be opened from the device web browser using a custom URI. We define the URI intent settings through modification of the AIR descriptor file:
1. Find the AIR descriptor file in your project. It is normally named something like
{MyProject}-app.xml
as it resides at the project root.2. Browse the file for a node named
<android>
; within this node will be another called<manifestAdditions>
, which holds a child node called<manifest>
. This section of the document contains everything we need to set permissions for our Android application.3. We will...