Skip to content

Instantly share code, notes, and snippets.

@heriniaina
Created December 21, 2014 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heriniaina/07dc9f9b76b6ea2e5f73 to your computer and use it in GitHub Desktop.
Save heriniaina/07dc9f9b76b6ea2e5f73 to your computer and use it in GitHub Desktop.
Android Action send
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, a_title + ": " + a_text + " \n" + a_link);
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.send_to)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment