comment on nfc broadcasts
authorEugene Crosser <crosser@average.org>
Sat, 4 May 2013 06:06:26 +0000 (10:06 +0400)
committerEugene Crosser <crosser@average.org>
Sat, 4 May 2013 06:06:26 +0000 (10:06 +0400)
src/org/average/nfcauthcr/Check.java

index f65ae1ba034536692c5ba0be8c216e329bac146f..36f3b1d8fe17cdb342a25ae85eb90ea56be7f30a 100644 (file)
@@ -89,6 +89,27 @@ public class Check extends Activity {
                return builder.create();
        }
 
+/*
+<receiver android:name=".IsoDepReceiver"
+          android:label="IsoDepReceiver">
+     <intent-filter>
+         <action android:name="android.nfc.action.TECH_DISCOVERED" />
+     </intent-filter>
+
+     <meta-data android:name="android.nfc.action.TECH_DISCOVERED"
+         android:resource="@xml/filter_nfc"
+     />
+ </receiver>
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+     <!-- capture anything using IsoDep -->
+     <tech-list>
+         <tech>android.nfc.tech.IsoDep</tech>
+     </tech-list>
+ </resources>
+
+*/
+
        private void enableDispatch(int slot) {
                Intent intent = getIntent();
                intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);