08-26-2008 05:10 PM
We want to automatically update one of our applications. It will be checking the server (basic HTTP request to check the current latest version) and if a newer version of the application is available it will download and install the new version after the user agrees. Does anyone have any sample code for the upgrade part? Thank you.
Solved! Go to Solution.
08-27-2008 09:25 AM
08-27-2008 11:25 AM
Do you know of a way that I can download and update automatically from the application? Or maybe from an external application (like Google Mobile Updater)?
08-28-2008 04:03 AM
06-25-2009 03:36 AM
My application is running in background always.
I am updating application automatically using CodemoduleManager, and i got "CodeModuleManager.CMM_OK_MODULE_OVERWRITTEN". But actually it is not updated. i.e. Old versiom is running on device only.
I use CodeModuleManager.promptForResetIfRequired(), but it doesnot do anything.
Then i manually restart the device by removing battery, then also old version is running on device only.
Can some one help me in this?
11-26-2010 06:38 AM
i define the address of the jad-file in the application. a seperate thread downloads the beginning of the jad-file, gets the substring beginning with MIDlet-Version: and compares it to the local version. if it is different / bigger the user is prompted to download the newer version (invoke the browser with the jad).
I ve tried the same thing but there is a problem, it works on simulater but couldnt make it work on device.
Im trace out the http connection result, as i said nothing happens on device. Any idea what could be the problem.
11-26-2010 06:58 AM
most likely you have a problem with your http connection. check out the sticky article about it.