CreateResource(xml, apduservice.xml, <host-apdu-service xmlns:android="
http://schemas.android.com/apk/res/android"
android:description="@string/servicedesc"
android:requireDeviceUnlock="false">
<aid-group android:description="@string/aiddescription"
android:category="other">
<aid-filter android:name="F222222222"/>
</aid-group>
</host-apdu-service>)
AddManifestText(<uses-feature android:name="android.hardware.nfc.hce"
android:required="true" />)
AddPermission(android.permission.NFC)
AddServiceText(nfctargeet, <intent-filter>
<action android:name="android.nfc.cardemulation.action.HOST_APDU_SERVICE" />
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>)
SetServiceAttribute(nfctargeet, android:exported, true)
SetServiceAttribute(nfctargeet, android

ermission, "android.permission.BIND_NFC_SERVICE")
AddApplicationText( <meta-data
android:name="android.nfc.cardemulation.host_apdu_service"
android:resource="@xml/apduservice" />)