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
How to Show Current Location on a Google Map on Android Marshmallow
How to Prevent a Dialog from Closing When a Button Is Clicked
How to Execute Dex: Method Id Not in [0, 0Xffff]: 65536
Passing Data Between a Fragment and Its Container Activity
Standard Android Button With a Different Color
How to Refresh Android Listview
Android Imageview Scaling and Translating Issue
How to Pick an Image from Gallery (Sd Card) For My App
This Activity Already Has an Action Bar Supplied by the Window Decor
How to Implement a Viewpager With Different Fragments/Layouts
Focusable Edittext Inside Listview
Example: Communication Between Activity and Service Using Messaging
How to Define Dimens.Xml For Every Different Screen Size in Android
How to Connect to My Http://Localhost Web Server from Android Emulator
How to Set the Part of the Text View Is Clickable
Get/Pick an Image from Android'S Built-In Gallery App Programmatically