This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes wml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "wml?" Watch "wml?" New topic


pallavi utukuri
Ranch Hand

Joined: Feb 10, 2004
Posts: 182
What is the procedure to display an image generated by a html page in a midlet.... does wml comes into picture here???

Thanks,<br />Pallavi
Shawn Fitzgerald

Joined: May 07, 2004
Posts: 25
No, WML bad!
For a midlet you read in the HTML, and there is an image tag
<img src="">
So your midlet needs to read the InputStream from your http connection, parse the tag, get the image source URL, open an InputStream to the image data then load that into an image object using Image.createImage(<inputstream> ;

Then you can display the image object in an imageItem UI component.


DFW J2ME Sig co-leader<br />Author: <a href="" target="_blank" rel="nofollow">SMS for MIP2.0</a>
pallavi utukuri
Ranch Hand

Joined: Feb 10, 2004
Posts: 182
No this is not the case.... i want to display the map generated by the following code in the midle.....take a look at the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<script src="" type="text/javascript"></script>
<div id="map" style="width: 500px; height: 400px"></div>
<script type="text/javascript">

var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.centerAndZoom(new GPoint(-122.1419, 37.4419), 4);


yep google map it is..
jQuery in Action, 2nd edition
subject: wml?
Similar Threads
how to convert html to wml
using XML to create wml and html
looking for a blackberry WAP browser emulator for my desktop
how to execute wml