×
Namespaces

Variants
Actions
Revision as of 05:54, 12 January 2012 by hamishwillee (Talk | contribs)

How to install Java ME application in mobile phone

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: wang_shui (24 Mar 2007)
Last edited: hamishwillee (12 Jan 2012)

This article explains how to install a Java ME application to a phone using Ovi Suite or Over-the-air transfer.

Contents

Overview

Installing J2ME applications to the phones can be done in a number of ways:

First you have to transfer the application to your mobile. You can transfer your application to the mobile from PC by making use of data cable, infrared or Bluetooth. You can install the MIDlets either with or without PC Suite or Ovi Suite.

On Series 40 phones the application gets installed automatically. On S60 phones you need to open message (in the inbox) containing the application and install it manually. However if you use PC Suite to install the MIDlet, the installation process is started automatically on the S60 phones, although you need to step through it manually.

Another way to transfer the MIDlet to the phone is store it (JAR and or JAD file) on a Web server and download the files using the browser of the phone (so called OTA download). Note that the server has to have the MIME types correctly defined:

JAR: application/java-archive
JAD: text/vnd.sun.j2me.app-descriptor

There are four ways to deploy the application into a mobile device

Over-the-Air (OTA)

With OTA deployment, the MIDlet (Java ME application) is installed on a Web server and then downloaded to a device via the device's Internet microbrowser. A JAR file and a JAD file are required for OTA installation. The process begins by browsing to a page that includes a link to a MIDlet suite. The link is then clicked, which causes the Web server to deliver the JAD file for the MIDlet suite to the browser. On receipt of the JAD file, it is opened and its contents are displayed. The JAD file contains a description of the MIDlet suite, including its size, version number, and who provided it. A request is then sent for the JAR file and, finally, the Web server delivers the JAR file. Once the JAR file has been delivered to the device, the suite is installed and individual MIDlets can be selected and run.

Infrared and Bluetooth

IR or Bluetooth technology can be used to send the MIDlet from a PC to another device .And these two technologies can also be used to send JAR files between two devices.Of course,the file must be saved in source device memory by any way before sent.And the destination device must support installing applications via MMS.

Installing over a serial cable

If the device has a serial cable port and connectivity software (either Nokia PC suite or the Ovi Suite) for a PC, the MIDlet can be installed on the device over a serial cable. To install the MIDlet, double-click on either the *.jar or *.jad file and follow on-screen instructions. On a PC, if jar/jad files are not associated with PC suite or Ovi suite by default, you can right click and select "open with" then choose "Ovi suite" or "PC suite" as applicable. Many devices can also be operated by connectivity software via IR or Bluetooth.

WAP Push

We can send as a WAP Push messages, the download link will be send to the targeted mobile number. User can download the application by clicking the link.

WAP Push messages are specially formatted SMS messages that display an alert message to the user, and give the user the option of connecting directly to a particular URL via the mobile phone’s WAP browser

1543 page views in the last 30 days.
×