Created
March 9, 2016 08:49
-
-
Save NearLinHere/33b63df1f1cc1d1ebc8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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