I have following code, which invoke mms client and attaches to it a picture
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra("sms_body", "some text");
sendIntent.putExtra("address", phoneNumber);
sendIntent.putExtra(Intent.EXTRA_STREAM, mCurrItemUri);
sendIntent.setType("image/*");
getContext().startActivity(
Intent.createChooser(sendIntent, "Send MMS..."));
The problem I am facing is that I cannot pass phone number to that intent. And Is there any way to pass an array of phone numbers to it?
Thank you on advance.
I think you need to set proper type for mms. for example:
Intent sendIntent = new Intent(Intent.ACTION_VIEW);
sendIntent.setType("vnd.android-dir/mms-sms");
...
...
For more info, read this.