The below code is navigating me too default MMS
app with the photo, text and number
Intent mmsIntent = new Intent(Intent.ACTION_SEND);
mmsIntent.putExtra("sms_body", "text");
mmsIntent.putExtra("address", "121");
mmsIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(Environment.getExternalStorageDirectory(), "photo.jpeg")));
mmsIntent.setType("image/jpeg");
mmsIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(mmsIntent);
What I need is to send mms in background without showing any kind of interface. I can send text sms using SmsManager using
SmsManagaer smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(num, null, "Help Me", null, null);
Can I use smsManager.sendMultimediaMessage()
to send mms(I'd tried this method and no success yet)? If not then what it's use? And is there any other way to send mms in background?