12-02-2009 10:26 AM
Hello there, I have jad, cod and jar files on the url. I can install the app by launching the url (with jad at the end). now what I want to do is - after the app is already installed, I want to programmatically check for the upgrade and if latest/greatest with new jad with date is there in the url, download and install. It is possible? how do i do this. thanks.
12-02-2009 10:33 AM
12-02-2009 10:35 AM
open the jad in your app, using an httpconnection. check the "MIDlet-Version:" tag and compare it with the local version (see CodeModuleManager).
You can just display the browser to download the jad (simple) or use CodeModuleManager to install the cod (complex).
Add basic authorization for password protected websites.
12-02-2009 11:01 AM
It may be slightly quicker on stale versions , if your server honors it, to use an "If-modified-since" header for the jad request.
Then of course if you get the content you need to use code modul emanager and install it or download it ( again)
by invoking the RIM browser for manula install etc.