Skip to content

Instantly share code, notes, and snippets.

@Vitnere
Last active November 9, 2016 12:07
Show Gist options
  • Save Vitnere/08b412e4798d3d75f8a9f988af76e97d to your computer and use it in GitHub Desktop.
Save Vitnere/08b412e4798d3d75f8a9f988af76e97d to your computer and use it in GitHub Desktop.
Share
/*tested on google inbox, gmail, viber,
samsung stack sms app, google keep,
facebook litle, hangouts, google translate*/
Intent intent2 = new Intent();
intent2.setAction(Intent.ACTION_SEND);
intent2.setType("text/plain");
intent2.putExtra(Intent.EXTRA_SUBJECT, "Coffee order");
intent2.putExtra(Intent.EXTRA_TEXT, priceMessage);
startActivity(Intent.createChooser(intent2, "Share via"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment