beautypg.com

25 auto launch of midlets, Scenarios involved in launching midlet – Motorola HANDSET C381P User Manual

Page 100

background image

25
Auto
Launch of Midlets

100

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.

• 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.

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.