Name

midlet.platformrequest — Perform platform-specific actions

Synopsis

midlet.platformrequest url

Description

From the Javadocs:

Requests that the device handle (for example, display or install) the indicated URL.

If the platform has the appropriate capabilities and resources available, it SHOULD bring the appropriate application to the foreground and let the user interact with the content, while keeping the MIDlet suite running in the background. If the platform does not have appropriate capabilities or resources available, it MAY wait to handle the URL request until after the MIDlet suite exits. In this case, when the requesting MIDlet suite exits, the platform MUST then bring the appropriate application (if one exists) to the foreground to let the user interact with the content.

In other words, depending on the device, you can launch applications with midlet.platformrequest. For example:

# Make a phone call
midlet.platformrequest "tel:+393488866859"
# Start the sms sending application
midlet.platformrequest "sms:+393488866859"
# Open a web page
midlet.platformrequest "http://www.hecl.org"
# Install the jad/jar
midlet.platformrequest "http://www.hecl.org/jars/cldc1.1-midp2.0/Hecl.jad"
	  
[Note]Note

There is not much standard about this command. It may or may not support different url types on different phones. Making phone calls with "tel:" URL's should always work. Also, keep in mind that on some devices, launching an external application may terminate the currently running midlet.