aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/com/zeapo/pwdstore/PgpHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/PgpHandler.java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PgpHandler.java56
1 files changed, 56 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PgpHandler.java b/app/src/main/java/com/zeapo/pwdstore/PgpHandler.java
new file mode 100644
index 00000000..22a6f8cc
--- /dev/null
+++ b/app/src/main/java/com/zeapo/pwdstore/PgpHandler.java
@@ -0,0 +1,56 @@
+package com.zeapo.pwdstore;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.widget.TextView;
+
+import com.zeapo.pwdstore.R;
+
+import org.openintents.openpgp.util.OpenPgpServiceConnection;
+
+public class PgpHandler extends Activity {
+
+
+ private OpenPgpServiceConnection mServiceConnection;
+
+ public static final int REQUEST_CODE_SIGN = 9910;
+ public static final int REQUEST_CODE_ENCRYPT = 9911;
+ public static final int REQUEST_CODE_SIGN_AND_ENCRYPT = 9912;
+ public static final int REQUEST_CODE_DECRYPT_AND_VERIFY = 9913;
+ public static final int REQUEST_CODE_GET_KEY = 9914;
+ public static final int REQUEST_CODE_GET_KEY_IDS = 9915;
+
+ public final class Constants {
+ public static final String TAG = "Keychain";
+ }
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_pgp_handler);
+ Bundle extra = getIntent().getExtras();
+ ((TextView) findViewById(R.id.hhh)).setText(extra.getString("FILE_NAME"));
+ }
+
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.pgp_handler, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+ if (id == R.id.action_settings) {
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}