Hy, I want to make an update to my application - full not only it's database. I want to make a form for the update, and I want to be able to download from a http adress my new version of my application, but now I came up to a problem : the application can't be overwritten if it is open. SO I have to make another hidden application (by hidden I mean it can't be seen on the screen, only on my delete app form), and when the user wants to make the update, this other app will be loaded and download to the device the new version, and overwrite the old one. The questions are: 1. how can I make hte UploadApp hidden 2. how can I close the current program, and open another, and passing some date to it- the http adress in this case?
I support a "Update my Application" feature in my SXSW 2005 schedule application. How I do it is by setting up a series of URLs on my webserver, one for each version of the program that has the web update feature:
http://2005.sxsw.com/pda/includes/downloads/update_4.1.0.html http://2005.sxsw.com/pda/includes/downloads/update_4.2.0.html
The application turns it's own version string into a URL using the format string
http://2005.sxsw.com/pda/includes/downloads/update_%s.html
and the 'tver' 1000 resource, then uses that to launch the device's web browser using code derived from the Web Browser Manager sample code in the PalmSource KB.
http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_faqid=731
So, a user with an up-to-date application gets a "your using the latest version" message, while a user with an older version gets a link to the PRC download. I could have used HTML auto-refresh to just start the download automatically, something like
<meta http-equiv="Refresh" content="5; URL=http://2005.sxsw.com/pda/includes/downloads/sxsw_2005.prc" />
embedded in the <head> part of the page.
-- Ben Combee, Senior Software Engineer, palmOne, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
