How to send message in android from our application?

Total Post:29

Points:107
 1354  View(s)
Ratings:
Rate this:
send message in android from our application
  1. 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..”));
        }
    });

      Modified On Apr-06-2018 06:18:16 AM

Answer