From d5c5a2c43b3ffda4183cf8d57eb585613ed4906e Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Mon, 19 Apr 2010 02:12:13 +0000 Subject: major restructuring, moving dialog, message, menu, option menu, task, type IDs into Id in a similar structure as the generated R, also introducing a BaseActivity class that almost all activities derive from, which generates some common dialogs, handles the progress update, thread management, and thread communication also adding first draft of encrypt file activity, not very functional yet --- .classpath | 8 + .project | 33 ++ AndroidManifest.xml | 105 ++++--- bin/APG 0.9.x.apk | Bin 0 -> 1599507 bytes bin/classes.dex | Bin 0 -> 3024036 bytes bin/resources.ap_ | Bin 0 -> 152630 bytes res/layout/account_item.xml | 14 +- res/layout/create_key.xml | 14 +- res/layout/decrypt_message.xml | 146 ++++----- res/layout/edit_key.xml | 29 +- res/layout/edit_key_key_item.xml | 216 +++++++------ res/layout/edit_key_section.xml | 2 +- res/layout/edit_key_user_id_item.xml | 167 +++++----- res/layout/encrypt_file.xml | 166 ++++++++++ res/layout/encrypt_message.xml | 138 ++++----- res/layout/file_dialog.xml | 24 +- res/layout/key_list.xml | 28 ++ res/layout/key_list_child_item_master_key.xml | 88 +++--- res/layout/key_list_child_item_sub_key.xml | 76 ++--- res/layout/key_list_child_item_user_id.xml | 14 +- res/layout/key_list_group_item.xml | 55 ++-- res/layout/mailbox_message_item.xml | 58 ++-- res/layout/main.xml | 93 ++++-- res/layout/select_public_key.xml | 57 ++-- res/layout/select_public_key_item.xml | 137 +++++---- res/layout/select_secret_key.xml | 9 +- res/layout/select_secret_key_item.xml | 111 +++---- res/values/strings.xml | 11 + src/org/thialfihar/android/apg/Apg.java | 32 +- .../android/apg/AskForSecretKeyPassPhrase.java | 6 +- src/org/thialfihar/android/apg/BaseActivity.java | 235 ++++++++++++++ .../android/apg/DecryptMessageActivity.java | 215 ++++--------- .../thialfihar/android/apg/EditKeyActivity.java | 172 ++--------- .../android/apg/EncryptFileActivity.java | 304 ++++++++++++++++++ .../android/apg/EncryptMessageActivity.java | 230 +++++--------- src/org/thialfihar/android/apg/FileDialog.java | 19 +- src/org/thialfihar/android/apg/Id.java | 82 +++++ .../thialfihar/android/apg/MailListActivity.java | 6 +- src/org/thialfihar/android/apg/MainActivity.java | 80 +++-- .../android/apg/PublicKeyListActivity.java | 303 +++++++----------- .../android/apg/SecretKeyListActivity.java | 342 ++++++++------------- .../android/apg/SelectPublicKeyListActivity.java | 166 +--------- .../android/apg/SelectPublicKeyListAdapter.java | 186 +++++++++++ .../android/apg/SelectSecretKeyListActivity.java | 4 +- 44 files changed, 2397 insertions(+), 1784 deletions(-) create mode 100644 .classpath create mode 100644 .project create mode 100644 bin/APG 0.9.x.apk create mode 100644 bin/classes.dex create mode 100644 bin/resources.ap_ create mode 100644 res/layout/encrypt_file.xml create mode 100644 res/layout/key_list.xml create mode 100644 src/org/thialfihar/android/apg/BaseActivity.java create mode 100644 src/org/thialfihar/android/apg/EncryptFileActivity.java create mode 100644 src/org/thialfihar/android/apg/Id.java create mode 100644 src/org/thialfihar/android/apg/SelectPublicKeyListAdapter.java diff --git a/.classpath b/.classpath new file mode 100644 index 000000000..6d4a0c412 --- /dev/null +++ b/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 000000000..b4ab4a1fa --- /dev/null +++ b/.project @@ -0,0 +1,33 @@ + + + APG 0.9.x + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 28b9a2d9d..e54d70dc1 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -14,72 +14,99 @@ limitations under the License. --> - - - + + + + + + - - - - + - - + - - + - - + + + + + - + - + + + + + + + + + + + - - - + + + diff --git a/bin/APG 0.9.x.apk b/bin/APG 0.9.x.apk new file mode 100644 index 000000000..5f41d9268 Binary files /dev/null and b/bin/APG 0.9.x.apk differ diff --git a/bin/classes.dex b/bin/classes.dex new file mode 100644 index 000000000..e6dbb2454 Binary files /dev/null and b/bin/classes.dex differ diff --git a/bin/resources.ap_ b/bin/resources.ap_ new file mode 100644 index 000000000..3d2e3eda7 Binary files /dev/null and b/bin/resources.ap_ differ diff --git a/res/layout/account_item.xml b/res/layout/account_item.xml index e37000ff0..c2a75075e 100644 --- a/res/layout/account_item.xml +++ b/res/layout/account_item.xml @@ -24,12 +24,12 @@ android:layout_width="fill_parent" android:layout_height="?android:attr/listPreferredItemHeight"> - + diff --git a/res/layout/create_key.xml b/res/layout/create_key.xml index 569b703f5..ab327ffeb 100644 --- a/res/layout/create_key.xml +++ b/res/layout/create_key.xml @@ -18,35 +18,47 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:layout_width="fill_parent"> + + + + + + + + + android:layout_width="fill_parent" + android:gravity="right" + android:numeric="integer"/> + + diff --git a/res/layout/decrypt_message.xml b/res/layout/decrypt_message.xml index 2a0aa153d..de5b5e7fa 100644 --- a/res/layout/decrypt_message.xml +++ b/res/layout/decrypt_message.xml @@ -21,77 +21,79 @@ android:layout_height="fill_parent" android:fillViewport="true"> - - - - - - - - - - - - - - - - - - - - - - -