File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Auto update for j2me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Auto update for j2me" Watch "Auto update for j2me" New topic

Auto update for j2me

Van Vu

Joined: Oct 13, 2006
Posts: 15
Dear all,

Is it possible to do auto update in j2me. For example, when the user run the application, it connects to server to see if there is new version available. If yes, than first step is to inform the user with popup or alarm. The first step is not a problem. The second step is if the user click "update", for ex, than the midlet automatically download and run the new version? is it possible to do the second step automatically or the user have to go to the website and dload the new version manually ? Have you seen in practice any midlet that is able to do auto update like this ?

Best regards.

Van Vu
[ May 22, 2007: Message edited by: Bear Bibeault ]
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
See here on the use of MIDlet.platformRequest()

"If the URL points to a MIDlet suite's JAD or JAR file, for example, the platform request is for download and installation of the MIDlet suite, using the platform's normal installation process."

It should work for MIDlet update.
See also the MIDP Javadocs.


Eduardo Marques
Get ready for your SCMAD certification at - See what all the buzz is about ...
I agree. Here's the link:
subject: Auto update for j2me
It's not a secret anymore!