简体   繁体   中英

Sending MMS through Intents in android to a particular number

I have code to send MMS through intents.

Intent sendIntent = new Intent(Intent.ACTION_SEND); 

                if(filename != "")
                sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + Environment.getExternalStorageDirectory()+ "/"+filename+".jpg"));
                sendIntent.setType("image/jpg");
                startActivity(sendIntent);

but how come I can send MMS to a particular phone number. Looking forward to your reply. thanks.

This question has been asked in another thread. Android SDK MMS

Unfortunately, there isn't a way to perform your requirement. The nearest you can get is SmsManager class which send sms behind the scene.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM