HOW TO SEND MESSAGE IN ANDROID FROM OUR APPLICATION?

Maria Susan

Total Post:29

Points:107
Posted by  Maria Susan
 845  View(s)
Ratings:
Rate this:
send message in android from our application
  1. Chris S

    Post:48

    Points:336
    Re: How to send message in android from our application?

    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..”));

        }

    });

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!