package="org.average.nfcauthcr"
android:versionCode="1"
android:versionName="1.0">
- <application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
- <activity android:name="NFCAuthCRConf"
+ <uses-sdk android:minSdkVersion="10"
+ android:targetSdkVersion="17" />
+
+ <uses-permission android:name="android.permission.NFC" />
+ <uses-feature android:name="android.hardware.nfc"
+ android:required="true" />
+
+ <application android:label="@string/app_name"
+ android:icon="@drawable/yalekey"
+ android:allowBackup="true"
+ android:theme="@style/AppTheme">
+
+ <activity android:name=".NFCAuthCREnroll"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
+
</application>
</manifest>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:text="Hello World, NFCAuthCRConf"
+ android:text="Hello World, NFCAuthCR"
/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string name="app_name">NFCAuthCRConf</string>
+ <string name="app_name">NFC Chal-Resp Auth</string>
</resources>
--- /dev/null
+<resources>
+ <style name="AppBaseTheme" parent="android:Theme.Light">
+ </style>
+
+ <style name="AppTheme" parent="AppBaseTheme">
+ </style>
+</resources>
+++ /dev/null
-package org.average.nfcauthcr;
-
-import android.app.Activity;
-import android.os.Bundle;
-
-public class NFCAuthCRConf extends Activity
-{
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- }
-}
--- /dev/null
+package org.average.nfcauthcr;
+
+import android.app.Activity;
+import android.os.Bundle;
+
+public class NFCAuthCREnroll extends Activity
+{
+ private static final String logTag = "NFCAuthCR";
+
+ private static boolean waitingForResult = false;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState)
+ {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+ }
+
+ @Override
+ protected void onStop() {
+ super.onStop();
+ if (!waitingForResult) { finish(); }
+ }
+}