Demo entry 6355040

Share Intent

   

Submitted by anonymous on Apr 12, 2017 at 10:57
Language: Java. Code size: 701 Bytes.

            Intent shareIntent = new Intent();
            shareIntent.setAction(Intent.ACTION_SEND);
            shareIntent.putExtra(Intent.EXTRA_SUBJECT, "App to monitor mole changes over time");
            shareIntent.putExtra(Intent.EXTRA_TITLE, "App to monitor mole changes over time");
            shareIntent.putExtra(Intent.EXTRA_TEXT, "Melanoma Skin Cancer can be treated if caught early. Do you check your skin and moles for any changes? Download this app and fight skin cancer now!"
                    + "\n" + "http://miiskin.com/melanoma-awareness/");
            shareIntent.setType("text/plain");
            startActivity(Intent.createChooser(shareIntent, "Send something"));

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).