<pre class="prettyprint">
<?xml version="1.0" encoding="utf-8"?>
<widget xmlns:tizen="http://tizen.org/ns/wdigets" xmlns="http://www.w3.org/ns/widgets"
- id="http://yourdomain/basicapp" version="1.0.0" viewmodes="maximized" >
- <profile name="wearable" />
- <tizen:application id="ZmAk4fxZWY.basicapp" package="ZmAk4fxZWY" required_version="2.3.1"/>
- <icon src=icon.png"/>
- <name>basicapp</name>
- <metadata key="http://tizen.org/metadata/nfc_cardemulation"
- value="/res/wgt/wallet.xml"/>
+ id="http://yourdomain/NFCtest" version="1.0.0" viewmodes="maximized">
+ <profile name="wearable"/>
+ <tizen:application id="ZmAk4fxZWY.NFCtest" package="ZmAk4fxZWY" required_version="2.3.1"/>
+ <icon src="icon.png"/>
+ <name>NFCtest</name>
+ <tizen:privilege name="http://tizen.org/privilege/nfc.common"/>
+ <tizen:privilege name="http://tizen.org/privilege/nfc.cardemulation"/>
+ <tizen:app-control>
+ <tizen:src name="index.xml" reload="enable"/>
+ <tizen:operation name="http://tizen.org/appcontrol/operation/nfc/card_emulation/host_apdu_service"/>
+ <tizen:uri name="nfc://secure/HCE/aid/A0000000041010"/>
+ </tizen:app-control>
+ <tizen:metadata key="http://tizen.org/metadata/nfc_cardemulation"
+ value="/res/wgt/wallet.xml"/>
</widget>
</pre>
-<ul><li>The <span style="font-family: Courier New,Courier,monospace;">metadata</span> element must contain the <span style="font-family: Courier New,Courier,monospace;">key</span> and <span style="font-family: Courier New,Courier,monospace;">value</span> attributes.</li>
+<ul><li>The <span style="font-family: Courier New,Courier,monospace;">tizen:app-control</span> element must contain the <span style="font-family: Courier New,Courier,monospace;">tizen:src</span> and <span style="font-family: Courier New,Courier,monospace;">tizen:operation</span> and <span style="font-family: Courier New,Courier,monospace;">tizen:uri</span> elements:
+<ul>
+<li>The <span style="font-family: Courier New,Courier,monospace;">tizen:src</span> element must contain the <span style="font-family: Courier New,Courier,monospace;">name</span> attribute that defines the page to be handled. The <span style="font-family: Courier New,Courier,monospace;">reload</span> attribute is optional.</li>
+<li>The <span style="font-family: Courier New,Courier,monospace;">tizen:operation</span> element must be <span style="font-family: Courier New,Courier,monospace;">http://tizen.org/appcontrol/operation/nfc/card_emulation/host_apdu_service</span>.</li>
+<li>The <span style="font-family: Courier New,Courier,monospace;">tizen:uri</span> element must be <span style="font-family: Courier New,Courier,monospace;">nfc://secure/HCE/aid/<specific AID></span>.</li>
+</ul></li>
+<li>The <span style="font-family: Courier New,Courier,monospace;">tizen:metadata</span> element must contain the <span style="font-family: Courier New,Courier,monospace;">key</span> and <span style="font-family: Courier New,Courier,monospace;">value</span> attributes:
+<ul>
<li>The <span style="font-family: Courier New,Courier,monospace;">key</span> attribute must be <span style="font-family: Courier New,Courier,monospace;">http://tizen.org/metadata/nfc_cardemulation</span>.</li>
<li>The <span style="font-family: Courier New,Courier,monospace;">value</span> attribute must contain the AID XML file path.
<p>The <span style="font-family: Courier New,Courier,monospace;">value</span> attribute is a relative path starting from the application root path.</p></li>
</ul>
</li>
+</ul>
+</li>
<li><p>The metadata element points to an AID XML file. The following is an example of the file with an AID declaration:</p>
<pre class="prettyprint">
<?xml version="1.0" encoding="utf-8"?>
-<application name="ZmAk4fxZWY.basicapp">
+<application name="NFCtest">
<wallet>
<aid-group category="payment">
- <aid aid="325041592E5359532E4444463031"
- se_type="hce" unlock="false" power="sleep"/>
+ <aid aid="A0000000041010" se_type="hce" unlock="false" power="on"/>
+ </aid-group>
+ <aid-group category="other">
+ <aid aid="D4100000030001" se_type="hce" unlock="false" power="on"/>
</aid-group>
</wallet>
</application>