12-13-2009 09:38 PM
Can anyone tell me how or point me to a forum discussion on setting up a blackberry app to check for updates of newer versions? I have an app with a "Check For Updates" menu option as well as an established web site. It is Windows hosting and PHP 5. Any suggestions?
Solved! Go to Solution.
12-13-2009 11:40 PM
Are you already distributing the app OTA on this site?
You might try getting the JAD file via HTTP GET, parse the JAD to determine the version number, and compare this with the current version of the application. If the version on the server is newer, you could launch the browser and point to the the JAD file URL, which triggers the OTA download sequence.
12-14-2009 10:49 AM
This is a new app so the OTA install is still being worked on. Files are on the site but some configs are still needed. I'm not sure what is meant by your statement below:
... getting the JAD file via HTTP GET, parse the JAD to determine the version number, and compare this with the current version of the application. If the version on the server is newer, you could launch the browser and point to the the JAD file URL, which triggers the OTA download sequence.
Could you elaborate a bit please?
12-16-2009 12:54 PM
Ideas anyone?
This is a new app so the OTA install is still being worked on. Files are on the site but some configs are still needed. I'm not sure what is meant by your statement below:
... getting the JAD file via HTTP GET, parse the JAD to determine the version number, and compare this with the current version of the application. If the version on the server is newer, you could launch the browser and point to the the JAD file URL, which triggers the OTA download sequence.
Could you elaborate a bit please?
12-16-2009 05:47 PM - edited 12-16-2009 05:48 PM
Here it is, as simple as I can explain it:
You can retrieve the JAD file from your OTA server using an HTTP GET call.
The JAD file is just a text file. Within this file is the version of the program.
<snip from JAD file>
Manifest-Version: 1.0
MIDlet-Version: 1.0.3 <---- Version is here
MIDlet-Jar-Size: 484590
Parse the file, extract the version of the program, and compare this with the version of the code running live on the device.
If the version on the server is newer, launch the browser to the URL of the JAD file, which will trigger the application download logic on the device.
12-16-2009 06:00 PM
Alternatively you can manage it all yourself:
How to - Programmatically install and upgrade applications
Article Number: DB-00763
http://www.blackberry.com/knowledgecenterpublic/li