diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-02-15 01:06:03 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-02-15 01:06:03 +0100 |
commit | 494a5fa414fe5962bdee0d50e761da9dc0cc1cc7 (patch) | |
tree | b15206c948f9a3ce20f67deb2e13b5c2aa9b8a18 /OpenPGP-Keychain-API/example-app/src | |
parent | 21ba41edaec7eb942e0ebe004874a763b9afa638 (diff) | |
download | open-keychain-494a5fa414fe5962bdee0d50e761da9dc0cc1cc7.tar.gz open-keychain-494a5fa414fe5962bdee0d50e761da9dc0cc1cc7.tar.bz2 open-keychain-494a5fa414fe5962bdee0d50e761da9dc0cc1cc7.zip |
private request codes, pass params through methods and pending intents, getKeyIds method
Diffstat (limited to 'OpenPGP-Keychain-API/example-app/src')
-rw-r--r-- | OpenPGP-Keychain-API/example-app/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/OpenPGP-Keychain-API/example-app/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java b/OpenPGP-Keychain-API/example-app/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java index c4fde3f7e..e21b1c2a1 100644 --- a/OpenPGP-Keychain-API/example-app/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java +++ b/OpenPGP-Keychain-API/example-app/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java @@ -159,7 +159,7 @@ public class OpenPgpProviderActivity extends Activity { mCiphertext.setText(os.toString("UTF-8")); } catch (UnsupportedEncodingException e) { - e.printStackTrace(); + Log.e(Constants.TAG, "UnsupportedEncodingException", e); } break; } @@ -170,7 +170,7 @@ public class OpenPgpProviderActivity extends Activity { REQUEST_CODE_SIGN, null, 0, 0, 0); } catch (IntentSender.SendIntentException e) { - e.printStackTrace(); + Log.e(Constants.TAG, "SendIntentException", e); } break; } @@ -198,7 +198,7 @@ public class OpenPgpProviderActivity extends Activity { mCiphertext.setText(os.toString("UTF-8")); } catch (UnsupportedEncodingException e) { - e.printStackTrace(); + Log.e(Constants.TAG, "UnsupportedEncodingException", e); } break; } @@ -209,7 +209,7 @@ public class OpenPgpProviderActivity extends Activity { REQUEST_CODE_ENCRYPT, null, 0, 0, 0); } catch (IntentSender.SendIntentException e) { - e.printStackTrace(); + Log.e(Constants.TAG, "SendIntentException", e); } break; } @@ -237,7 +237,7 @@ public class OpenPgpProviderActivity extends Activity { mCiphertext.setText(os.toString("UTF-8")); } catch (UnsupportedEncodingException e) { - e.printStackTrace(); + Log.e(Constants.TAG, "UnsupportedEncodingException", e); } break; } @@ -248,7 +248,7 @@ public class OpenPgpProviderActivity extends Activity { REQUEST_CODE_SIGN_AND_ENCRYPT, null, 0, 0, 0); } catch (IntentSender.SendIntentException e) { - e.printStackTrace(); + Log.e(Constants.TAG, "SendIntentException", e); } break; } @@ -275,7 +275,7 @@ public class OpenPgpProviderActivity extends Activity { mMessage.setText(os.toString("UTF-8")); } catch (UnsupportedEncodingException e) { - e.printStackTrace(); + Log.e(Constants.TAG, "UnsupportedEncodingException", e); } break; } @@ -286,7 +286,7 @@ public class OpenPgpProviderActivity extends Activity { REQUEST_CODE_DECRYPT_AND_VERIFY, null, 0, 0, 0); } catch (IntentSender.SendIntentException e) { - e.printStackTrace(); + Log.e(Constants.TAG, "SendIntentException", e); } break; } @@ -297,7 +297,8 @@ public class OpenPgpProviderActivity extends Activity { @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { -// super.onActivityResult(requestCode, resultCode, data); + super.onActivityResult(requestCode, resultCode, data); + Log.d(Constants.TAG, "onActivityResult"); switch (requestCode) { case REQUEST_CODE_SIGN: { @@ -305,7 +306,7 @@ public class OpenPgpProviderActivity extends Activity { // try to sign again after password caching if (resultCode == RESULT_OK) { - sign(new Bundle()); + sign(data.getExtras()); } break; } |