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