For auto-upgrading my application :
I have make a socket connection and request for my latest .PRC file over an HTTP request.
Now I have received the byte stream of .PRC file in responce.
Now how can I store this received byte stream into the storage Ram as a application (.prc).
Is there some other way to receive an application from a server and installing it on Air ?
Two ideas:
1) Rather than receiving the PRC file directly from your application, instead request that the user's web browser fetch and install the PRC file using a "get URL" request to it.
See http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?p_faqid=731
2) If you want to do the HTTP fetch yourself, then look at the File Stream APIs for storing the data, and the Exchange Manager ExgDBRead and ExgDBWrite APIs. You'll need to do some extra work to rename your application before creating the updated application, because Palm OS doesn't allow multiple DBs with the same name on a device.
-- Ben Combee, DTS technical lead, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Palm OS Dev Fourm 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/
