How To Share Plain Text Using Share Intent To All Messaging Apps

Please follow and like us:

Share Plain Text Using Share Intent To All Messaging Apps

If you are looking for implementing sharing feature for your android app then you are at the right place, using this tutorial you can share simple plain text all other apps using Share Intent.

For implementing Sharing Intent Feature you just need to add following things to open Sharing options in a popup.

              String shareBody = "Download  app\n \n https://play.google.com/store/apps/details?id="+getPackageName();
                Intent sharingIntent = new Intent(Intent.ACTION_SEND);
                sharingIntent.setType("text/plain");

                sharingIntent.putExtra(Intent.EXTRA_TEXT, shareBody);
                startActivity(Intent.createChooser(sharingIntent, "Share using"));

Hope you liked our simple solution for implementing Share plain text using share intent tutorial.

Stay connected… Happy Coding đŸ™‚

 

nirav kalola