Skip to main content

How to implement a new version download and auto installation feature

3 replies [Last post]
digitalsol
Offline
Joined: 2009-10-11
Points: 0

Hi guys,
I want to implement a download feature for my program which will offer the user the possibility to download a new version if available, which will auto-install itself.
Can you give my some directions on how to download it into the phone and trigger an installation ?

Thank you in advance

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jaywayjohan
Offline
Joined: 2008-06-18
Points: 0

Hi,

you should use the platformRequest() method found in the MIDlet class. It takes a String as argument. If this String contains an URL to a JAD or JAR file, an installation shall start.

Regards
Johan

digitalsol
Offline
Joined: 2009-10-11
Points: 0

Thanks you very much for the answer. :)

digitalsol
Offline
Joined: 2009-10-11
Points: 0

It throws OutOfMemory for some reason. I'm passing an URL with jad file as a parameter.

Down anybody knows any other way the auto-upgrade feature can be implemented ?

btw, I'm using LWUIT so probably I should ask this question in the LWUIT forum

Message was edited by: digitalsol