Skip to content

Instantly share code, notes, and snippets.

@sjthn
Created January 27, 2017 18:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjthn/1d0ebed655e5ece601a3d39e8bb31f0b to your computer and use it in GitHub Desktop.
Save sjthn/1d0ebed655e5ece601a3d39e8bb31f0b to your computer and use it in GitHub Desktop.
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);
}
@dev3applications
Copy link

Hello Is there any way to filter Application using ShareCompat.IntentBuilder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment