Auto Launch Of Midlets; Scenarios Involved In Launching Midlet - Motorola C381P J2ME Technical Manual

J2me developer guide
Table of Contents

Advertisement

25

Auto Launch of Midlets

The Java framework on the device must provide a mechanism to automatically launch
midlets based on specific message. The message may be generated by several clients
including a push message coming from the network. Once the KVM received the
message, it takes the appropriate action of launching the midlet the message is intended
for.

Scenarios involved in launching midlet

There are three possible scenarios when KVM has to pass the message to a midlet.
NOTE: If the installation is terminated, appropriate cleanup actions should be performed.
The midlets that were being installed should be left at an uninstalled state.
Auto Launch of Midlets
The midlet is currently actively running: In this case, the KVM simply passes the
message to the midlet. The client originating the request is notified that the midlet
is already running.
No midlets are active: In this case, the KVM must launch the midlet the message
is intended for. Upon successfully starting, KVM should inform the client that the
launch has been successful.
The KVM is currently busy either running another midlet or installing another
midlet. Since the KVM will support only one midlet at a time, the client originating
the message should be notified that KVM is currently running application. The
client then has the option of having KVM terminate the current midlet and
launching another one.
25
100

Advertisement

Table of Contents
loading

Table of Contents