Created
October 30, 2013 12:48
-
-
Save LordRaydenMK/7232116 to your computer and use it in GitHub Desktop.
Sharing on Android
This file contains hidden or 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
Intent sendIntent = new Intent(); | |
sendIntent.setAction(Intent.ACTION_SEND); | |
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send."); | |
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