|
Publishing a MIDlet suite makes it available on a web server for users to download. To do this:
The MIME type for a JAD file is:
The MIME type for a JAR file is:
See the documentation for your web server for configuration instructions.
The HTML file gives users a way to find and download your MIDlet. Finding and downloading a MIDlet is called over the air provisioning (OTA).
The HTML file does not require any particular name or layout. When users run the midp executable to find and download MIDlets, they can enter any URL and MIDP will display only the links to JAD files at that URL. It ignores the rest of the HTML page.
For example, an HTML page that lists the Hello World MIDlet could be called get-hello.html and be as simple as this:
<html> <head><title>The Hello MIDlet</title></head> <body> <a href="http://localhost:8080/midlets/HelloMIDlet.jad" >Hello MIDlet<a> </body> </html>
Note that, although no particular format for the HTML file is required, the whitespace in the file can affect the layout of the MIDlet suite name on the device. For example, if the HTML file with a link to the “Hello MIDlet” has a carriage return between the words Hello and MIDlet, the name looks like this on the device emulator:
One way to do this is to run the device emulator. See Using MIDP for instructions
|
Creating MIDlet Suites MIDP Reference Implementation, Version 2.0 FCS |
Copyright © 2002 Sun Microsystems, Inc. All rights reserved.