Created
January 27, 2017 18:33
-
-
Save sjthn/1d0ebed655e5ece601a3d39e8bb31f0b to your computer and use it in GitHub Desktop.
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
ShareCompat.IntentBuilder intentBuilder = ShareCompat.IntentBuilder.from(this); | |
Intent intent = intentBuilder | |
.setType("text/html") | |
.setText(text) | |
.setChooserTitle("Choose email client") | |
.createChooserIntent(); | |
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
Hello Is there any way to filter Application using ShareCompat.IntentBuilder