This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

J2ME interaction with WML and XHTML browsers?  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dan Greening
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!