views:

279

answers:

2

I am currently developing a j2me application for the i290 and would like to be able to update to new midlet revisions in my application using code. The problem I am having is that one method that I know of that can do this, platformRequest(), is locked by motorola and I am not interesting in paying to sign my code.

I need a way to update the midlet via a network connection in my code without using a locked API or having to pay to do this. Any help would be appreciated.

+1  A: 

When you say it is "locked by Motorola" what exactly do you mean? platformRequest() is definitely the usual way of upgrading a midlet on a device; are you quite sure that it doesn't work? What happens when you call it?

In my fairly extensive J2ME experience I have seen quite a few things being unexpectedly disabled to unsigned apps, but never platformRequest(). Try checking the method's return value; if it returns true you need to close the app yourself before the platformRequest() will happen (assuming it doesn't throw a SecurityException, but again I have never heard of a handset which does this).

If that fails then I guess you need to get the user to visit the upgrade URL manually through the handset's browser.

funkybro
The method isn't completely locked; it seems that executing .jar/.jad files is disabled.
Executing jad or jar files?
Ram
Tried both, with no success.
+1  A: 

i have implemented following code to upgrade application

platformrequest("URL TO JAR FILE");

i am checking if the jad file residing on server has more value in the custom field Application-Version than the current one then the platformRequest will get called..

every thing fine

but only one problem i have installed my app in memory card and if i updateusing above mentioned technique... i m having new version installed saperately..

instead of this i want my older version application to be upgraded [replaced by newer]

in jad file ony i change the Application-Version Field rest every thing are same as the local installed appliction..

and i want my app to be replaced in memory card only.