From 6e9146c91ab9ec78837fa9ba7e21e2c01b72907f Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Tue, 17 Aug 2010 01:02:39 +0000 Subject: [PATCH] added initial support for HKP key servers, allowing searching and key import Update issue 9 Can search a key server now, touch a result to import the key. Still needs better error handling and some Intents to import keys based on key ID. Also still need key server preferences. --- AndroidManifest.xml | 6 + res/layout/key_server_query_layout.xml | 48 ++++ res/layout/key_server_query_result_item.xml | 97 +++++++ .../key_server_query_result_user_id.xml | 26 ++ res/values/strings.xml | 4 + src/org/thialfihar/android/apg/Apg.java | 23 ++ .../thialfihar/android/apg/BaseActivity.java | 8 + .../android/apg/DecryptActivity.java | 2 +- .../android/apg/EditKeyActivity.java | 1 - .../thialfihar/android/apg/HkpKeyServer.java | 119 +++++++++ src/org/thialfihar/android/apg/Id.java | 8 + .../android/apg/KeyListActivity.java | 5 +- src/org/thialfihar/android/apg/KeyServer.java | 23 ++ .../android/apg/KeyServerQueryActivity.java | 246 ++++++++++++++++++ .../thialfihar/android/apg/MainActivity.java | 13 +- .../apg/SelectPublicKeyListAdapter.java | 2 +- .../apg/SelectSecretKeyListAdapter.java | 2 +- .../android/apg/ui/widget/KeyEditor.java | 10 +- 18 files changed, 624 insertions(+), 19 deletions(-) create mode 100644 res/layout/key_server_query_layout.xml create mode 100644 res/layout/key_server_query_result_item.xml create mode 100644 res/layout/key_server_query_result_user_id.xml create mode 100644 src/org/thialfihar/android/apg/HkpKeyServer.java create mode 100644 src/org/thialfihar/android/apg/KeyServer.java create mode 100644 src/org/thialfihar/android/apg/KeyServerQueryActivity.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index a49148f98..25e824962 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -177,6 +177,11 @@ android:label="@string/title_mailInbox" android:configChanges="keyboardHidden|orientation|keyboard"/> + + + diff --git a/res/layout/key_server_query_layout.xml b/res/layout/key_server_query_layout.xml new file mode 100644 index 000000000..167d02fef --- /dev/null +++ b/res/layout/key_server_query_layout.xml @@ -0,0 +1,48 @@ + + + + + + + + + +