Skip to content

Instantly share code, notes, and snippets.

@leontiy
Created August 13, 2009 04:41
Show Gist options
  • Save leontiy/166997 to your computer and use it in GitHub Desktop.
Save leontiy/166997 to your computer and use it in GitHub Desktop.
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("image/png"); //or "message/rfc822"
ContentResolver cr = getContentResolver();
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(status.url));
String postfix = (status.recognized()) ? "success" : "failure";
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Captured images: " + postfix);
sendIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { "[email protected]" });
startActivity(Intent.createChooser(sendIntent, "Send images"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment