Last active
December 11, 2015 04:08
An example of how to setup an Adobe AIR for Android application xml file to enable incoming NFC data.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read the blog post explaining how to use this:
http://creativedrewy.blogspot.com/2013/01/receive-nfc-data-in-adobe-air-android.html