Rewrite of Remote Smart Card Reader

- use material design
- use AsyncTask instead of Runnable for VPCDWorker to integrate with the
  App's lifecycle
- use a dedicated Preference Activity
- integrated zxing's QR code scanner
- use Snackbar instead of Toast
- capture debug messages in log instead of explicitly passing messages
- use reader mode only, breaks support of Android before kitkat
This commit is contained in:
Frank Morgner
2016-04-01 02:27:37 +02:00
parent aa82e78ce7
commit 1d3e5fe4fd
51 changed files with 1624 additions and 717 deletions

View File

@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="Virtual Smart Card Reader Driver">
<Preference
android:title="Reader Driver Available on Github"
android:summary="@string/vpcd_config_info">
<intent android:action="android.intent.action.VIEW"
android:data="https://frankmorgner.github.io/vsmartcard/virtualsmartcard/README.html" />
</Preference>
<Preference
android:title="Scan Configuration"
android:summary="Scan QR code from vpcd-config to import VPCD's hostname and port."
android:key="scan">
</Preference>
<EditTextPreference
android:key="hostname"
android:defaultValue="10.0.2.2"
android:title="@string/hint_vpcd_hostname"
android:hint="URL or IP address"
android:inputType="textUri" />
<EditTextPreference
android:key="port"
android:defaultValue="35963"
android:title="@string/hint_vpcd_port"
android:inputType="number"
android:hint="Default: 35963" />
</PreferenceCategory>
<PreferenceCategory
android:title="Contactless Smart Card Communication">
<Preference
android:title="NFC System Settings"
android:summary="NFC needs to be enabled for contactless communication with the smart card"
android:key="nfcSettings">
</Preference>
<ListPreference
android:key="delay"
android:defaultValue="250"
android:title="Delay for Card Presence Check"
android:entries="@array/strDelays"
android:entryValues="@array/intDelays" />
</PreferenceCategory>
</PreferenceScreen>