Table 30 Platform Request Api Feature/Class Support For Midp - Motorola MOTORAZR maxx V6 Developer's Manual

Java me developer guide
Hide thumbs Also See for MOTORAZR maxx V6:
Table of Contents

Advertisement

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");
23.2 MIDlet 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
Code Sample 11 Plataform Request
[170/201]

Advertisement

Table of Contents
loading

Table of Contents