Created
December 21, 2014 07:06
-
-
Save heriniaina/07dc9f9b76b6ea2e5f73 to your computer and use it in GitHub Desktop.
Android Action send
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
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