Hello, I am trying to write a simple code that will receive a WAP Push message on my device. However, when I send a wap message with a custom mime-type, I get the following error (taken from logcat logs):
Received PDU. Unknown Content-Type = XYZ where XYZ = my custom MIME-typed message Looking at the relevant telephony code (WapPushOverSms.java), I found that their is no switch in the code that will be able to handle a custom MIME type. (Please see the code below) So, how do I go about sending a wap-push with custom MIME type? Any inputs/ideas? Thanks for reading/answering my post in advance. Kind regards. ===== URL: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=telephony/java/com/android/internal/telephony/WapPushOverSms.java;hb=15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b Relevant code from WapPushOverSms.java: if (mimeType.equals (WspTypeDecoder.CONTENT_MIME_TYPE_B_DRM_RIGHTS_XML)) { 129 binaryContentType = WspTypeDecoder.CONTENT_TYPE_B_DRM_RIGHTS_XML; 130 } else if (mimeType.equals (WspTypeDecoder.CONTENT_MIME_TYPE_B_DRM_RIGHTS_WBXML)) { 131 binaryContentType = WspTypeDecoder.CONTENT_TYPE_B_DRM_RIGHTS_WBXML; 132 } else if (mimeType.equals (WspTypeDecoder.CONTENT_MIME_TYPE_B_PUSH_SI)) { 133 binaryContentType = WspTypeDecoder.CONTENT_TYPE_B_PUSH_SI; 134 } else if (mimeType.equals (WspTypeDecoder.CONTENT_MIME_TYPE_B_PUSH_SL)) { 135 binaryContentType = WspTypeDecoder.CONTENT_TYPE_B_PUSH_SL; 136 } else if (mimeType.equals (WspTypeDecoder.CONTENT_MIME_TYPE_B_PUSH_CO)) { 137 binaryContentType = WspTypeDecoder.CONTENT_TYPE_B_PUSH_CO; 138 } else if (mimeType.equals (WspTypeDecoder.CONTENT_MIME_TYPE_B_MMS)) { 139 binaryContentType = WspTypeDecoder.CONTENT_TYPE_B_MMS; 140 } else { 141 if (Config.LOGD) Log.w(LOG_TAG, "Received PDU. Unknown Content-Type = " + mimeType); 142 return; 143 } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

