Action to share the app's PlayStore link along with the screen print

0

Is there any way to share the PlayStore application link along with the screen print? I need the user to click the share button to get a print of the screen to be shared along with the application link that is currently being sent:

private void shareApplication() {
    try {
        Intent i = new Intent(Intent.ACTION_SEND);
        i.setType("text/plain");
        i.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.title_app_in_share));
        String sAux = getString(R.string.would_like_share) + "\n\n";
        sAux = sAux + "https://play.google.com/store/apps/details?id=com.blackteastudio.upgradecalculator\n";
        i.putExtra(Intent.EXTRA_TEXT, sAux);
        startActivity(Intent.createChooser(i, getString(R.string.share_with)));
    } catch(Exception e) {
        e.toString();
    }
}
    
asked by anonymous 28.01.2018 / 14:31

0 answers