Note that there are some explanatory texts on larger screens.

plurals
  1. POParse application/smil MMS MIME type on android
    primarykey
    data
    text
    <p>So I have come across three categories of MMS message types:</p> <p><code>Plain Text - "text/plain"</code> </p> <p><code>Image - "image/jpeg", "image/bmp", "image/gif", "image/jpg", "image/png"</code></p> <p><code>SMIL (Synchronized Multimedia Integration Language) - "application/smil"</code> </p> <p>So I don't have an issue grabbing the data in an MMS that falls into the first two categories. However I am having trouble grabbing the data from MMS of message type <code>application/smil</code> </p> <p>Below I have included 5 different examples of <code>application/smil</code> MMS messages that I have pulled from my phone. </p> <pre><code>[31, 22, -1, application/smil, 123_1.smil, 106, null, null, &lt;0000&gt;, 0.smil, null, null, null, &lt;smil&gt; &lt;head&gt; &lt;layout&gt; &lt;root-layout height="160" width="240"/&gt; &lt;region fit="meet" height="67%" id="Image" left="0%" top="0%" width="100%"/&gt; &lt;region fit="meet" height="33%" id="Text" left="0%" top="67%" width="100%"/&gt; &lt;/layout&gt; &lt;/head&gt; &lt;body&gt; &lt;par dur="8000ms"&gt; &lt;img region="Image" src="cid:992"/&gt; &lt;/par&gt; &lt;par dur="8000ms"&gt; &lt;img region="Image" src="cid:993"/&gt; &lt;/par&gt; &lt;/body&gt; &lt;/smil&gt;] </code></pre> <p>.</p> <pre><code>[22, 14, -1, application/smil, null, null, null, null, &lt;smil&gt;, smil.xml, null, null, null, &lt;smil&gt; &lt;head&gt; &lt;layout&gt; &lt;root-layout width="320px" height="480px"/&gt; &lt;region id="Image" left="0" top="0" width="320px" height="320px" fit="meet"/&gt; &lt;region id="Text" left="0" top="320" width="320px" height="160px" fit="meet"/&gt; &lt;/layout&gt; &lt;/head&gt; &lt;body&gt; &lt;par dur="5000ms"&gt; &lt;img src="8555" region="Image"/&gt; &lt;text src="text_0.txt" region="Text"/&gt; &lt;/par&gt; &lt;/body&gt; &lt;/smil&gt;] </code></pre> <p>.</p> <pre><code>[13, 11, -1, application/smil, 123_1.smil, null, null, null, &lt;0000&gt;, null, null, null, null, &lt;smil&gt; &lt;head&gt; &lt;layout&gt; &lt;root-layout/&gt; &lt;region fit="scroll" height="30%" id="Text" left="0%" top="70%" width="100%"/&gt; &lt;region fit="meet" height="70%" id="Image" left="0%" top="0%" width="100%"/&gt; &lt;/layout&gt; &lt;/head&gt; &lt;body&gt; &lt;par dur="10000ms"&gt; &lt;text region="Text" src="cid:928"/&gt; &lt;/par&gt; &lt;/body&gt; &lt;/smil&gt;] </code></pre> <p>.</p> <pre><code>[16, 13, -1, application/smil, mms.smil, null, null, null, &lt;AAAA&gt;, AAAA, null, null, null, &lt;smil&gt; &lt;head&gt; &lt;layout&gt; &lt;root-layout width="240" height="160"/&gt; &lt;region id="Image" width="100%" height="67%" left="0%" top="0%" fit="meet"/&gt; &lt;region id="Text" width="100%" height="33%" left="0%" top="67%" fit="meet"/&gt; &lt;/layout&gt; &lt;/head&gt; &lt;body&gt; &lt;par dur="8000ms"&gt;&lt;text src="text__01.txt" region="Text"/&gt;&lt;/par&gt;&lt;/body&gt; &lt;/smil&gt;] </code></pre> <p>.</p> <pre><code>[5, 5, -1, application/smil, smil.smil, 106, null, null, &lt;0000&gt;, smil, null, null, null, &lt;smil&gt; &lt;head&gt; &lt;layout&gt; &lt;root-layout height="160" width="240"/&gt; &lt;region fit="meet" height="67%" id="Image" left="0%" top="0%" width="100%"/&gt; &lt;region fit="meet" height="33%" id="Text" left="0%" top="67%" width="100%"/&gt; &lt;/layout&gt; &lt;/head&gt; &lt;body&gt; &lt;par dur="8000ms"&gt; &lt;img region="Image" src="cid:351"/&gt; &lt;text region="Text" src="cid:352"/&gt; &lt;/par&gt; &lt;/body&gt; &lt;/smil&gt;] </code></pre> <p>How exactly do you go about parsing this type of MMS? How do other texting apps deal with different kinds of MMS's? Any help would be greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload