diff options
Diffstat (limited to 'OpenPGP-Keychain-API-Demo/src/org')
2 files changed, 14 insertions, 2 deletions
diff --git a/OpenPGP-Keychain-API-Demo/src/org/openintents/crypto/CryptoSignatureResult.java b/OpenPGP-Keychain-API-Demo/src/org/openintents/crypto/CryptoSignatureResult.java index e193b73b3..d3aaa52d9 100644 --- a/OpenPGP-Keychain-API-Demo/src/org/openintents/crypto/CryptoSignatureResult.java +++ b/OpenPGP-Keychain-API-Demo/src/org/openintents/crypto/CryptoSignatureResult.java @@ -73,4 +73,14 @@ public class CryptoSignatureResult implements Parcelable { return new CryptoSignatureResult[size]; } }; + + @Override + public String toString() { + String out = new String(); + out += "signature: " + signature; + out += "\nsignatureSuccess: " + signatureSuccess; + out += "\nsignatureUnknown: " + signatureUnknown; + return out; + } + } diff --git a/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java b/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java index 1189d2cf4..ab5795c1c 100644 --- a/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java +++ b/OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/CryptoProviderDemoActivity.java @@ -102,8 +102,10 @@ public class CryptoProviderDemoActivity extends Activity { @Override public void run() { - mMessage.setText(new String(outputBytes) + "\n\n" + signatureResult.toString()); - + mMessage.setText(new String(outputBytes)); + Toast.makeText(CryptoProviderDemoActivity.this, + "signature result:\n" + signatureResult.toString(), Toast.LENGTH_LONG) + .show(); } }); |