Skip to content

Instantly share code, notes, and snippets.

@NearLinHere
Created March 9, 2016 08:49
Show Gist options
  • Save NearLinHere/33b63df1f1cc1d1ebc8f to your computer and use it in GitHub Desktop.
Save NearLinHere/33b63df1f1cc1d1ebc8f to your computer and use it in GitHub Desktop.
String shareBody = "Here is the share content body";
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject Here");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
startActivity(sharingIntent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment