Skip to content

Instantly share code, notes, and snippets.

@jp-bennett
Created September 19, 2016 16:49
Show Gist options
  • Save jp-bennett/0fb449a865eade3f3b9425701c343871 to your computer and use it in GitHub Desktop.
Save jp-bennett/0fb449a865eade3f3b9425701c343871 to your computer and use it in GitHub Desktop.
OpenPgpServiceConnection mServiceConnection;
mServiceConnection = new OpenPgpServiceConnection(this, "org.sufficientlysecure.keychain");
mServiceConnection.bindToService();
Intent data = new Intent();
data.setAction(OpenPgpApi.ACTION_CHECK_PERMISSION);
OpenPgpApi api = new OpenPgpApi(getActivity(), myServiceConnection.getService());
Intent result = api.executeApi(data, (InputStream) null, null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment