How To Add App Share Option

Java
      
                    Intent shareIntent = new Intent(Intent.ACTION_SEND);
                    shareIntent.setType("text/plain");
                    String appLink = "https://play.google.com/store/apps/details?id=" + getPackageName();
                    String shareMessage = "Check out this awesome app: " + appLink;
                    shareIntent.putExtra(Intent.EXTRA_TEXT, shareMessage);
                    startActivity(Intent.createChooser(shareIntent, "Share via"));
     
     
 
Previous Post Next Post