aboutsummaryrefslogtreecommitdiffstats
path: root/org_apg_integration_demo
diff options
context:
space:
mode:
authorDominik <dominik@dominikschuermann.de>2012-04-12 15:23:00 +0200
committerDominik <dominik@dominikschuermann.de>2012-06-13 19:28:22 +0300
commit1a33f4d886ce45596dd7f6dfc3356fe32ec71c1c (patch)
treef59a5b0dd99581bfd7615bd56df869420540c769 /org_apg_integration_demo
parentdfa4e084dd885a875763014bd18e698325bf576e (diff)
downloadopen-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.jarbin8258 -> 0 bytes
-rw-r--r--org_apg_integration_demo/project.properties1
-rw-r--r--org_apg_integration_demo/res/layout/intent_demo.xml7
-rw-r--r--org_apg_integration_demo/src/org/apg/api_demo/IntentDemoActivity.java5
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
deleted file mode 100644
index 43bcec37b..000000000
--- a/org_apg_integration_demo/libs/org_apg_integration_lib.jar
+++ /dev/null
Binary files differ
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();
}