How to Send Image Via Mms in Android

How do I configure my Android phone to send images to Twilio via MMS?

Twilio advises this is because my Twilio number is not MMS capable. I need to try it with an MMS Capable number. This will need to be an international number at the moment.

How to check if a Twilio number can send MMS messages

Trial account restrictions

Guidelines for Australia

Sending a picture message in android?

Here you go:

How to send image via MMS in Android?

Android: Send MMS Message With Picture on SDCard

I ended up finding the solution: it's looking for a file, not a content stream or straight URI. This made it work for me:

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra("sms_body", "Sent using Spootur");
sendIntent.setType("image/png");
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(imagePath)));
startActivityForResult(sendIntent, SEND_ACTIVITY);

Hope this helps someone



Related Topics



Leave a reply



Submit