How to attach Image with message via iPhone application?

This is not possible with the current MessageUI API: the MSMessageComposeViewController doesn’t accept attachments like the MFMailComposeViewController does. The only way to do this currently is to use an external service that allows you to send mms via a REST call for example. GSMA defines a REST specification for exactly this purpose: http://www.gsmworld.com/oneapi/reference_documentation-version_1.html (multiple pdf’s … Read more

Android SDK MMS

This worked for me. Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(“sms_body”, “some text”); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url)); sendIntent.setType(“image/png”); The url being passed to the Uri.parse method should be of the form used to access the media store such as content://media/external/images/media/23. From the series at jtribe.

Send MMS programmatically

I finally found a solution that works 100%. Please refer to github project https://github.com/klinker41/android-smsmms. (Anyone who find it usefull please donate to author http://forum.xda-developers.com/showthread.php?t=2222703). Notice, that obligatory settings are only Settings sendSettings = new Settings(); sendSettings.setMmsc(mmsc); sendSettings.setProxy(proxy); sendSettings.setPort(port); you can get them something like (found at Set APN programmatically on Android – answear by vincent091): … Read more

Detecting MMS messages on Android

Detecting an incomming MMS message is easy, just put in broadcast receiver monitoring WAP_PUSH_RECIEVED events, as in… <receiver android:name=”.PushReceiver”> <intent-filter> <action android:name=”android.provider.Telephony.WAP_PUSH_RECEIVED” /> <data android:mimeType=”application/vnd.wap.mms-message” /> </intent-filter> </receiver> Making sense out of what you get is a lot harder. I managed to decode everything I wanted from the WAP_PUSH_RECEIVED intent by cloning the PDU parsing … Read more

Receive MMS messages in Android KitKat

There’s zero documentation so here’s some info to help. 1) com.google.android.mms.pdu from source. You need the Pdu utils. 2) You get the notification push from byte array extra of the incoming mms broadcast (intent.getByteArrayExtra(“data”)). 3) Parse the notification push into a GenericPdu (new PduParser(rawPdu).parse()). 4) You’ll need TransactionSettings to communicate with the carrier’s wap server. … Read more

How to Read MMS Data in Android?

It’s kind of difficult to find documentation about this, so I will collect here all information I have found. If you are in a rush or just don’t like to read, jump to the How to get data from a SMS section. content://mms-sms/conversations This is the URI of the Mms and SMS provider… which allows … Read more

How to send image via MMS in Android?

MMS is just a htttp-post request. You should perform the request using extra network feature : final ConnectivityManager connMgr = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); final int result = connMgr.startUsingNetworkFeature( ConnectivityManager.TYPE_MOBILE, Phone.FEATURE_ENABLE_MMS); If you get result with Phone.APN_REQUEST_STARTED value, you have to wait for proper state. Register BroadCastReciver and wait until Phone.APN_ALREADY_ACTIVE appears: final IntentFilter filter = new IntentFilter(); … Read more