Motorola C381P J2ME Technical Manual page 76

J2me developer guide
Table of Contents

Advertisement

17
Download MIDlet Through Browser
If the DOWNLD softkey is selected, the handset starts downloading the
application. The handset displays "Downloading...% Complete" along with the
percentage of downloading completed at a time. "Downloading...% Complete"
shall use static dots, not dynamic.
Before downloading the MIDlet, handset checks for available memory. Mot-Data-
Space-Requirements and Mot-Program-Space-Requirements are two JAD
attributes that will help the KVM determine whether there is enough memory to
download and install the selected MIDlet suite. If there is not enough memory,
"Insufficient storage" transient dialog will be displayed before the download
begins. Upon time-out, the handset goes back to browser.
If an error occurs during download, such as a loss of service, then the transient
notice "Download Failed" must be displayed. Upon time-out, the handset goes
back to idle state.
A downloading application can be cancelled by pressing the END key. The
transient notice, "Download Cancelled, " displays. Upon time-out, handset goes
back to browser.
If JAR -file size does not match with specified size, it displays "Failed Invalid
File". Upon time-out, the handset goes back to browser.
When the downloading application is cancelled, handset cleans up all files,
including any partial JAR files and temporary files created during the download
process.
When downloading is done, the handset displays a transient notice "Download
Completed". The handset then starts to install the application.
The handset displays "Installing...".
After an application is successfully downloaded, a status message must be sent
back to the network server. This allows for charging of the downloaded
application.
Charging is per the Over the Air User Initiated Provisioning specification. The
status of an install is reported by means of an HTTP POST request to the URL
contained in the MIDlet-Install-Notify attribute. The only protocol that MUST be
supported is "http://".
If the browser connection is interrupted/ended during the download/installation
process, the device will be unable to send the HTTP POST with the MIDlet-Install
Notify attribute. In this case, the MIDlet will be deleted to insure the user does not
get a free MIDlet. The use case can occur when a phone call is accepted and
terminated during the installation process, because then the browser will not be
in the needed state in order to return the MIDlet Install Notify attribute.
Upon completing Installation, the handset displays a transient notice "Installed to
Games & Apps".
Upon time-out, the handset goes back to Browser.
During Installation if the MANIFEST file is wrong, the handset displays a
transient notice "Failed File Corrupt". Upon time-out, the handset goes back to
Browser.
76

Advertisement

Table of Contents
loading

Table of Contents