Home > DeveloperSection > Forums > How to send message in android from our application?
Maria Susan

Total Post:29

Points:107
Posted on    November-15-2014 3:31 AM

 Android Android sdk 
Ratings:


 1 Reply(s)
 528  View(s)
Rate this:
send message in android from our application


Chris S
Chris S

Total Post:48

Points:336
Posted on    November-15-2014 6:58 AM

You can perform your action on button click-

      btn.setOnClickListener(new View.OnClickListener() {

    public void onClick(View v) {

            Intent send = new Intent(Intent.ACTION_SEND);

            send.setType("text/plain");

            send.putExtra(Intent.EXTRA_TEXT, “This is demo message  ");

            startActivity(Intent.createChooser(send, "Send via..”));

    }

});


Don't want to miss updates? Please click the below button!

Follow MindStick