How can I receive WAP Push with custom MIME Type?

by RainBow » Tue, 15 Dec 2009 09:38:02 GMT

Sponsored Links

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 (, 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

Thanks for reading/answering my post in advance.

Kind regards.


URL: ;a=blob_plain;f=telephony/java/com/android/internal/telephony/;hb=15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b

Relevant code from

 if (mimeType.equals

 129                 binaryContentType =

 130             } else if (mimeType.equals

 131                 binaryContentType =

 132             } else if (mimeType.equals

 133                 binaryContentType =

 134             } else if (mimeType.equals

 135                 binaryContentType =

 136             } else if (mimeType.equals

 137                 binaryContentType =

 138             } else if (mimeType.equals

 139                 binaryContentType =

 140             } else {

 141                 if (Config.LOGD) Log.w(LOG_TAG, "Received PDU.
Unknown Content-Type = " + mimeType);

 142                 return;

 143             }


Other Threads

1. WebView, webpage gets zooomed automatically when TextBox in it is clicked

I am displaying a simple web page using android webview.
with settings.setSupportZoom(false);

There was no problem untill OS/SDK of the device got updated.
Now when the textbox in the form is clicked, web page gets zoomed  out



2. Programming in Java

Programming in Java first provides a thorough understanding of the
basic concepts of object-oriented programming principles and then
moves onto explain the concepts in Java. Beginning with the history
and creation of Java to its properties and applications, it gradually
moves ahead to provide an exhaustive coverage of features such as
operators, classes, objects, inheritance, packages, and exception
handling. The book provides a comprehensive discussion of the latest
features of Java such as enumerations, generics, logging API, console
class, StringBuilder class, NetworkInterface class, and assertions.
The inclusion of these features combined with core concepts like
multithreading, applets, AWT, and swings provide a thorough
understanding of the important concepts. Lastly, the book gives an
insight into some advanced concepts such as servlets, RMI, and JDBC.
Numerous programming exercises are interspersed in the chapters for
better understanding of concepts. The book includes detailed exercises
at the end of each chapter as also some key review questions to help
readers revise the concepts learnt. ISBN - 9780198063582
you can buy this book and many more books from


3. Updating the Tab icons

4. how to show a dialog alert dialog when receive a broadcast

5. Possible SoundPool bug in setLoop

6. Graphics performance

7. OpenGL ES Canvas