Skip to content

Instantly share code, notes, and snippets.

@creativedrewy
Last active December 11, 2015 04:08
Show Gist options
  • Save creativedrewy/4542380 to your computer and use it in GitHub Desktop.
Save creativedrewy/4542380 to your computer and use it in GitHub Desktop.
An example of how to setup an Adobe AIR for Android application xml file to enable incoming NFC data.
<manifestAdditions>
<![CDATA[
<manifest android:installLocation="auto">
<!-- I left out the "default" AIR manifest additions that are there by default. You should keep those. -->
<uses-permission android:name="android.permission.NFC" />
<uses-feature android:name="android.hardware.nfc" android:required="true" />
<application android:enabled="true">
<activity android:excludeFromRecents="false">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="{SCHEME}" android:host="{HOST}" />
</intent-filter>
</activity>
</application>
</manifest>
]]>
</manifestAdditions>
@creativedrewy
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment