added settings activity

This commit is contained in:
Frank Morgner
2016-04-07 15:36:00 +02:00
parent caff142b0b
commit f401923005
5 changed files with 383 additions and 0 deletions

View File

@@ -13,6 +13,17 @@
android:icon="@drawable/ic_action_delete"
app:showAsAction="withText" />
<item android:id="@+id/action_delete"
android:title="@string/action_delete"
android:icon="@drawable/ic_action_delete"
app:showAsAction="withText" />
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never" />
<item android:id="@+id/action_help"
android:title="@string/action_help"
android:icon="@android:drawable/ic_menu_help"

View File

@@ -37,5 +37,6 @@
<b>GIDS Applet</b> <small>(AID A000000397425446590201)</small>\n
\n
Place your device on a contact-less reader. When the reader issues a SELECT command for one of the application identifiers above, the emulator creates the appropriate applet. The emulated applet will then handle all subsequent APDUs.</string>
<string name="action_settings">Settings</string>
</resources>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="Java Card Emulator">
<Preference
android:title="NFC System Settings"
android:summary="NFC needs to be enabled for emulating a contactless smart card"
android:key="nfcSettings">
</Preference>
</PreferenceCategory>
</PreferenceScreen>