Merge branch 'master' of ssh://git.average.org/~/NFCAuthCR
authorEugene Crosser <crosser@average.org>
Sat, 4 May 2013 06:11:12 +0000 (10:11 +0400)
committerEugene Crosser <crosser@average.org>
Sat, 4 May 2013 06:11:12 +0000 (10:11 +0400)
src/org/average/nfcauthcr/Check.java

index eaf804d25a25353345e535ab5aeda8672830bae3..27a3d7161acfc7fe444c10564acb6d16ebf9d736 100644 (file)
@@ -84,6 +84,40 @@ public class Check extends Service {
                finish();
        }
 
+       private AlertDialog makeDialog() {
+               AlertDialog.Builder builder = new AlertDialog.Builder(this);
+               builder.setTitle(R.string.challenging);
+               builder.setMessage(R.string.swipe);
+               builder.setOnCancelListener(
+                               new DialogInterface.OnCancelListener() {
+                       public void onCancel(DialogInterface dialog) {
+                               finish();
+                       }
+               });
+               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);