There are a bunch of phones out with J2ME and WML, or J2ME and XHTML. I have not seen any way (yet) to invoke the WML/XHTML browser from within the J2ME environment. This would be great if you have a bunch of computations you want to do on the phone itself, but ultimately want to generate the content on a server. Are there any phones that do this? Is there a standard mechanism by which this is done? Thanks in advance. Dan
posted 13 years ago
Good question. The standard mechanism in MIDP v2 is to use the MIDlet.platformRequest() method call. You can just pass the URL as the parameter to the call and the page would open in the native browser. In fact, you can even pass special formatted URLs to instruct the phone to make voice calls etc. However, the implementation of this method varies depending on the phone. For example, NOKIA 6600 has a bug which would crash you Java app if you call platformRequest() ... For MIDP v1 devices, you can fetch the raw xHTML page via HTTP and use one of the several MIDP-based HTML/xHTML rendering engines to show it on the screen. One such vendors is reqwireless. No freebies though! http://www.reqwireless.com/ cheers Michael
Well, for the record the Motorola i730 (a MIDP v2 implementation) doesn't work either. You can use MIDlet.platformRequest() to make a phone call, but you can't use it to invoke a browser. The fun never stops!
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads