Android Software Engineer Question: Download Android Software Engineer PDF

Explain how to use built-in messaging within the application?

Tweet Share WhatsApp

Answer:

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!");
intent.setType("vnd.android-dir/mms-sms");
startActivity(intent);

Download Android Software Engineer PDF Read All 62 Android Software Engineer Questions
Previous QuestionNext Question
Explain sending SMS messages programmatically?Explain the sending SMS in android?