views:

124

answers:

1

hello i have a J2ME application , and the targeted device is fixed its nokia 3110 Classic. now the problem is i have specified "Update-Url" attribute in my JAD. but when i call platformrequest to UPGRADE existing application. rather upgrading current,it installs newer one. so i tried to do it logically,

i have read the jar file online. and written it to local disk. after it i deleted older one and replace newer one by it. it works fine in simulator.

any other sophisticated solution is welcomed.

A: 

I would suggest adding the actual class name to MIDlet-1.

Hopefully the new MIDlet still uses the same class.

The MIDlet installer is not really supposed to rely on MIDlet-Name and MIDlet-Vendor to uniquely identify an application.

I seem to remember something about the Update-Url line being about how to notify a remote server that the MIDlet HAS BEEN upgraded, not a location where to find the upgrade.

EDIT:

Right. My bad. I thought you were using a standard JAD property but the one I was thinking about was "MIDlet-Update-Notify", which, funnily enough, doesn't exist. There's only "MIDlet-Install-Notify" and "MIDlet-Delete-Notify". So, keep your "Update-Url" property.

The "MIDlet-1" line is supposed to contain 3 elements. The first one is the MIDlet name, the second is the optional icon, the third is the full MIDlet class package and name. It is hardly reasonable to expect the installer to rely solely on the MIDlet name to decide whether a new jar file is a new install or an upgrade.

The third element isn't in the JAD information you posted.

QuickRecipesOnSymbianOS
MIDlet-1: is actual class name only in my case.with fully qualified package structure.and if i will remove update-URL then app will look where in order to update?
org.life.java