diff options
author | Dominik <dominik@dominikschuermann.de> | 2012-04-12 15:23:00 +0200 |
---|---|---|
committer | Dominik <dominik@dominikschuermann.de> | 2012-06-13 19:28:22 +0300 |
commit | 1a33f4d886ce45596dd7f6dfc3356fe32ec71c1c (patch) | |
tree | f59a5b0dd99581bfd7615bd56df869420540c769 /org_apg_integration_demo | |
parent | dfa4e084dd885a875763014bd18e698325bf576e (diff) | |
download | open-keychain-1a33f4d886ce45596dd7f6dfc3356fe32ec71c1c.tar.gz open-keychain-1a33f4d886ce45596dd7f6dfc3356fe32ec71c1c.tar.bz2 open-keychain-1a33f4d886ce45596dd7f6dfc3356fe32ec71c1c.zip |
intent to create a new key
Diffstat (limited to 'org_apg_integration_demo')
-rw-r--r-- | org_apg_integration_demo/libs/org_apg_integration_lib.jar | bin | 8258 -> 0 bytes | |||
-rw-r--r-- | org_apg_integration_demo/project.properties | 1 | ||||
-rw-r--r-- | org_apg_integration_demo/res/layout/intent_demo.xml | 7 | ||||
-rw-r--r-- | org_apg_integration_demo/src/org/apg/api_demo/IntentDemoActivity.java | 5 |
4 files changed, 13 insertions, 0 deletions
diff --git a/org_apg_integration_demo/libs/org_apg_integration_lib.jar b/org_apg_integration_demo/libs/org_apg_integration_lib.jar Binary files differdeleted file mode 100644 index 43bcec37b..000000000 --- a/org_apg_integration_demo/libs/org_apg_integration_lib.jar +++ /dev/null diff --git a/org_apg_integration_demo/project.properties b/org_apg_integration_demo/project.properties index 8da376af8..8abe35df9 100644 --- a/org_apg_integration_demo/project.properties +++ b/org_apg_integration_demo/project.properties @@ -9,3 +9,4 @@ # Project target. target=android-15 +android.library.reference.1=../org_apg_integration_lib diff --git a/org_apg_integration_demo/res/layout/intent_demo.xml b/org_apg_integration_demo/res/layout/intent_demo.xml index 825a198b5..8d01b5a8b 100644 --- a/org_apg_integration_demo/res/layout/intent_demo.xml +++ b/org_apg_integration_demo/res/layout/intent_demo.xml @@ -7,6 +7,13 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > + + <Button + android:id="@+id/intent_demo_create_new_key" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:onClick="intentDemoCreateNewKeyOnClick" + android:text="Create new key" /> <Button android:id="@+id/intent_demo_select_secret_key" diff --git a/org_apg_integration_demo/src/org/apg/api_demo/IntentDemoActivity.java b/org_apg_integration_demo/src/org/apg/api_demo/IntentDemoActivity.java index d5b9fd5f8..9eff95faf 100644 --- a/org_apg_integration_demo/src/org/apg/api_demo/IntentDemoActivity.java +++ b/org_apg_integration_demo/src/org/apg/api_demo/IntentDemoActivity.java @@ -54,6 +54,11 @@ public class IntentDemoActivity extends Activity { mApgData = new ApgData(); } + public void intentDemoCreateNewKeyOnClick(View view) { + // mApgIntentHelper.createNewKey(); + mApgIntentHelper.createNewKey("dom <+491716581452@cryptocall.org>"); + } + public void intentDemoSelectSecretKeyOnClick(View view) { mApgIntentHelper.selectSecretKey(); } |