Created
January 27, 2017 18:37
-
-
Save sjthn/965d6cb70ce1e8903aa48ad51f1d4073 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
Intent intent = ShareCompat.IntentBuilder.from(this) | |
.setType("image/png") | |
.setStream(imageUri) | |
.setChooserTitle("Choose image client") | |
.getIntent(); | |
if (intent.resolveActivity(getPackageManager()) != null) { | |
startActivity(intent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment