Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 07:39, 19 December 2007.

KIJ000797 - Updating MIDlets on Series 40 phones

From Forum Nokia Wiki

ID KIJ000797 Creation date December 19, 2007
Platform Series 40 Devices All Series 40 devices supporting MIDP 2.0
Category Java ME Subcategory MIDP 2.0

Overview

The Nokia-Update JAD attribute should be used to update MIDlets.


Description

Series 40 devices support a Nokia-specific JAD attribute called "Nokia-Update" which can be used to provide a URL for the update location of the MIDlet. When the URL in this attribute points to a JAR file, the update process (which the user can start from the Options menu) will create a new MIDlet instead of overwriting and updating the existing MIDlet.

The recommended solution is that the Nokia-Update attribute in the JAD file should not point to JAR URLs, but instead it should point to a JAD URL. For starters, all signed MIDlets need a new JAD (to get a new signature), and invariably a new JAD is needed (for new permissions, version number etc.) so it is bad practice to put a JAR URL in this attribute.

Note: If the Nokia-Update attribute in the JAD file is blank, the Update menu item in the Series 40 UI is disabled, which means that it is not possible to update the MIDlet.

Note 2: If this attribute does not exist in the JAD file and the MIDlet is downloaded OTA to the device, the system automatically adds this attribute for the MIDlet in question using the download URL.


How to reproduce

  1. Create a MIDlet with the update URL (attribute called Nokia-Update) in the JAD pointing directly to a JAR file.
  2. Install a MIDlet via PC Suite using both JAD and JAR files.
  3. Update the MIDlet

A new MIDlet will be created instead of the MIDlet being overwritten and updated.


Solution

Always use URLs to the JAD file in the Nokia-Update attribute.

Related Discussions
Thread Thread Starter Forum Replies Last Post
NDS and MIDP2.0 zivgr Mobile Java Tools & SDKs 3 2003-07-23 14:00
secret recording bliz002 Mobile Java Media (Graphics & Sounds) 3 2007-11-29 00:13
Nokia 6131 NFC Emulator and Browser claudio1979 Mobile Java Tools & SDKs 25 2007-09-12 11:13
related to deployment very urgent sis1987 Mobile Java General 14 2008-06-29 02:53
Transparancy, 3410 Series 40 and Series 60.... fmhunter Mobile Java Tools & SDKs 2 2002-08-21 12:14
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX