0

We are using below code to send MMS but in some devices showing "Messaging" option but in some devices not showing "Messaging" option. And its showing rest of options like bluetooth, dropbox, email, evernote, etc. please correct me if i am doing something wrong.

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra("address", phoneNumber);
sendIntent.putExtra("sms_body", message);
Uri uri = Uri.fromFile(new File(Environment.getExternalStorageDirectory().getPath()+"/tmp.jpg"));
sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
sendIntent.setType("image/*");
startActivity(Intent.createChooser(sendIntent, "Send Image To:"));
Lawrence Dol
  • 63,018
  • 25
  • 139
  • 189
user516061
  • 31
  • 1
  • 4
  • i think u cant do a lot in this case, bcoz as soon as u call startActivity() control goes to android itself means it broadcast intent of the type Intent.ACTION_SEND. now the activities which have set the intent filters for this kind of intent appears in the list. still try replacing jpg or png in place of *. – N-JOY Jan 11 '11 at 06:01

1 Answers1

0

Not all android phones are required to have the "Messaging" app.

Falmarri
  • 47,727
  • 41
  • 151
  • 191
  • I want to send MMS through my application, i found that there is a way to send MMS through opening default messaging application. if some of android device do not seem to have Messaging app then what is the best way to send MMS through my application. Can you please suggest me. – user516061 Jan 13 '11 at 09:14
  • http://stackoverflow.com/questions/2972845/i-want-send-image-through-using-mms-in-android/2973016#2973016 – Falmarri Jan 13 '11 at 18:00
  • Hey @Falmarri, i looked into the example you gave of sending MMS, but I am having some issues: http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-mms-in-android . How did you get this to work? – Etienne Lawlor Mar 09 '13 at 21:08
  • @toobsco42: Ask a new question. This answer is 2 years old. – Falmarri Mar 12 '13 at 19:27
  • Hey @Falmarri, I have asked a new question HERE http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-mms-in-android – Etienne Lawlor Mar 12 '13 at 19:44