Java ME Developer Guide

Chapter 23 - Platform Request API

Table 30 Platform Request API feature/class support for MIDP

For MIDP 2.0, the javax.microedition.midlet.MIDlet.platformRequest () method should be used and called when the MIDlet is destroyed. The following code sample is an example of the Platform Request API:

Start a Call

MIDlet.platformrequest("tel:88143593")

Start a Web Session

MIDlet.platformrequest("http://gonzaga.cesar.org.br/

~bam/triplets/tii/menu.wml")

MIDlet.platformrequest("http://gonzaga.cesar.org.br/

~bam/triplets/tii/Millionaire1.jad");

Code Sample 11 Plataform Request

23.2MIDlet Request of a URL that Interacts with Browser

When a MIDlet suite requests a URL, the browser will come to the foreground and connect to that URL. The user will then have access to the browser and control over any downloads or network connections. The initiating MIDlet suite will continue run- ning in the background, if it cannot (upon exiting the requesting MIDlet suite) the handset will bring the browser to the foreground with the specified URL.

If the URL specified refers to a MIDlet suite, JAD, or JAR, the request will be treated as a request to install the named package. The user will be able to control the down- load and installation process, including cancellation. Please note normal Java installa- tion process should be used.

Refer to the JAD Attributes chapter for more details.

DRAFT - Subject to Change [170/201]

Page 170
Image 170
Motorola maxx V6 manual MIDlet Request of a URL that Interacts with Browser, Draft Subject to Change 170/201, Start a Call