From 6cc7156fbd094265dddd66562941c90a2d9079d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Tue, 8 Jan 2013 12:58:21 +0100 Subject: [PATCH] Share with NFC, Qr Code sharing refactored, Receiving NFC is not ready yet --- APG/AndroidManifest.xml | 30 ++- APG/res/layout/main.xml | 2 +- APG/res/layout/share_nfc_beam.xml | 14 ++ APG/res/menu/nfc_beam.xml | 10 + APG/res/raw/help_nfc_beam.html | 15 ++ APG/res/raw/nfc_beam_share.html | 15 ++ APG/res/values/strings.xml | 14 +- .../org/thialfihar/android/apg/Constants.java | 3 + APG/src/org/thialfihar/android/apg/Id.java | 3 +- .../android/apg/helper/OtherHelper.java | 16 -- .../android/apg/ui/HelpActivity.java | 23 +- .../android/apg/ui/HelpFragmentAbout.java | 3 +- .../android/apg/ui/HelpFragmentHtml.java | 4 +- .../android/apg/ui/ImportKeysActivity.java | 31 ++- .../android/apg/ui/KeyListPublicFragment.java | 31 ++- .../apg/ui/KeyServerQueryActivity.java | 2 +- .../android/apg/ui/ShareNfcBeamActivity.java | 237 ++++++++++++++++++ .../android/apg/ui/ShareQrCodeActivity.java | 65 +++++ 18 files changed, 459 insertions(+), 59 deletions(-) create mode 100644 APG/res/layout/share_nfc_beam.xml create mode 100644 APG/res/menu/nfc_beam.xml create mode 100644 APG/res/raw/help_nfc_beam.html create mode 100644 APG/res/raw/nfc_beam_share.html create mode 100644 APG/src/org/thialfihar/android/apg/ui/ShareNfcBeamActivity.java create mode 100644 APG/src/org/thialfihar/android/apg/ui/ShareQrCodeActivity.java diff --git a/APG/AndroidManifest.xml b/APG/AndroidManifest.xml index cff694b0f..6a31333fd 100644 --- a/APG/AndroidManifest.xml +++ b/APG/AndroidManifest.xml @@ -64,6 +64,7 @@ + @@ -357,6 +358,33 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/APG/res/layout/main.xml b/APG/res/layout/main.xml index e4c509c70..66a334462 100644 --- a/APG/res/layout/main.xml +++ b/APG/res/layout/main.xml @@ -58,7 +58,7 @@ style="@style/DashboardButton" android:drawableTop="@drawable/dashboard_scan_qrcode" android:onClick="scanQrcodeOnClick" - android:text="@string/dashboard_scan_qrcode" /> + android:text="@string/dashboard_import_keys" />