Created
November 7, 2016 13:23
-
-
Save rsicarelli/bdd28e2250f8685ce55b7498e48d7c80 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
public void shareImage(String text, Uri imageUri) { | |
Intent shareIntent = new Intent(); | |
shareIntent.setAction(Intent.ACTION_SEND); | |
shareIntent.putExtra(Intent.EXTRA_STREAM, imageUri); | |
shareIntent.setType("image/*"); | |
activity.startActivity(Intent.createChooser(shareIntent, text)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment