title: Receive MMS messages in Android KitKat
body: <p>So this video <a href="http://www.youtube.com/watch?v=mdq0R2WQssQ">Android 4.4 SMS APIs</a> from #DevBytes  explains the recent changes to the SMS APIs in KitKat.  They also provide a link with a sample project. <a href="http://goo.gl/uQ3Nih">http://goo.gl/uQ3Nih</a></p>
  
  <p>They suggest that you handle the receive of an MMS in a service.  Which all looks fine, except they neglect to mention the most undocumented piece.  How to actually handle an incoming MMS.</p>
  
  <p>Here is the sample from the project
  <a href="https://gist.github.com/lawloretienne/8970938">https://gist.github.com/lawloretienne/8970938</a></p>
  
  <p>I have tried to "handle the MMS"</p>
  
  <p><a href="https://gist.github.com/lawloretienne/8971050">https://gist.github.com/lawloretienne/8971050</a></p>
  
  <p>I can get the extras from the intent but the only meaningful thing that I can extract is the number from which the MMS was sent.</p>
  
  <p>Can anyone point me in the right direction about how to go about this?</p>
  
  <p>I noticed that a WAP_PUSH_MESSAGE contains a few things, a FROM, SUBJECT, and CONTENT_LOCATION.</p>
  
  <p>The content location appears to be the url where the content of the MMS is contained.  How can I access this?</p>
  
  <p>Here is an example of that URL</p>
  
  <p><code>https://atl1mmsget.msg.eng.t-mobile.com/mms/wapenc?location=XXXXXXXXXXX_14zbwk&amp;rid=027</code></p>
  
  <p>Where the X is a digit in the phone number of the device I am testing on.</p>
  
  <p>It looks like the MMSC (Multimedia Messaging Service Center) for T-Mobile in the U.S. is <code>http://mms.msg.eng.t-mobile.com/mms/wapenc</code></p>
  
  <p>According to this list : <a href="http://www.activexperts.com/xmstoolkit/mmsclist/">http://www.activexperts.com/xmstoolkit/mmsclist/</a></p>