It was necessary to execute it in a simple way in my application and solve the following:
String strUrl = "http://example.com"; Intent shareUrl = new Intent(Intent.ACTION_SEND); shareUrl.setType("text/plain"); shareUrl.putExtra(android.content.Intent.EXTRA_TEXT, strUrl); startActivity(Intent.createChooser(shareURL,"Share with..."));
This is the easiest way to share your content with other applications on your device. Practical and functional.
source share