Send mms via intent

1 vote · 2 comments

Send a picture via mms.

raw ·
copy
· download
Uri mmsUri = Uri.parse("content://media/external/images/media/1"); Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra("sms_body", "Hi how are you"); intent.putExtra(Intent.EXTRA_STREAM, mmsUri); intent.setType("image/png"); startActivity(intent);
Add a comment

2 Comments

Thanks ! But I think you forgot the permission :

Reply · March 19, 2012, 11:03 a.m.

<uses-permission android:name="android.permission.SEND_SMS" />

Reply · March 19, 2012, 11:03 a.m.