Android Sharesheet

Andrés Sandoval
Nov 5 · 1 min read

Today I learned about “Android Sharesheet”, simply by adding one line of code to the share intent makes it look nicer.

Line of code:

Intent shareIntent = Intent.createChooser(share, null);

The below code opens the new Android Sharesheet:

/**
* Create simple share intent by simply appending the url to the {
@code shareText}.
*/
public Intent buildShareIntent(String shareText, String url) {
if (StringUtils.isEmpty(shareText) || StringUtils.isEmpty(url)) {
return null;
}

Intent share = new…

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Andrés Sandoval

Written by

Sr. Software Engineer, writer, swimmer, traveler. my personal apps: https://goo.gl/rDuuQw https://goo.gl/15GvfE

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade