Home > DeveloperSection > Interviews > How you can use built-in Messaging within your application?

Posted on    May-29-2015 12:06 AM

 Android Android 
 1 Answer(s)
  1017  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    May-29-2015 12:06 AM

You can use an Intent object to activate the built-in Messaging service. You have to pass MIME type “vnd.android-dir/mms-sms”, in setType method of Intent as shown in the following given below code.

Intent intent = new Intent (android.content.Intent.ACTION_VIEW);
intent.putExtra("address", "5556; 5558;");// Send the message to multiple recipient.
itent.putExtra("sms_body", "Hello my friends!"); 

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

Follow MindStick