title: Android: Understanding how to work with WAP messages
body: <p>I'm to work on an application that has to intercept WAP push messages and then /<em>do something</em>/ with the information. I've read up as much as I could on WAP and handling WAP, etc. I was able to write a prototype that would parse binary/hex strings that were sent across as part of the intent extras of the WAP_PUSH_RECIEVED broadcast.</p>
  
  <p>I've tried reading up things here as well, but I cannot seem to understand some things clearly.</p>
  
  <p>1) How is a textual WAP message handled in Android? Is is intercepted the same and will that information also be sent as the data in the broadcast? Meaning, when we are writing a User Agent in android, can we simply assume that WAP messages, text, wbxml or otherwise is handled and broadcast along with the WBXML form?</p>
  
  <p>2) I've been trying to listen to WAP messages, specifically the ones sent out for GMail, and nothing is detected. Does this mean that these messages are specifically delivered to the Gmail UA only, and therefore we can't get them, or am I doing something wrong? The below is from my manifest. I also have the appropriate permissions</p>
  
  <p></p>
  
  <pre><code>       &lt;intent-filter android:priority="999" &gt;
              &lt;action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" /&gt;
              &lt;data android:mimeType="application/*" /&gt;
              &lt;data android:mimeType="application/vnd.wap.emn+wbxml" /&gt;
              &lt;data android:mimeType="text/vnd.wap.emn+xml" /&gt;
              &lt;data android:mimeType="text/vnd.wap.emn" /&gt;
              &lt;data android:mimeType="text/vnd.wap.emnc" /&gt;
          &lt;/intent-filter&gt;
  </code></pre>
  
  <p>I tried with MMS as the mime type and was able to work with it, but the WAP message otherwise eludes me.</p>
  
  <p>Any help would be appreciated. Ta!</p>