Steve Branin wrote:
> The application I am working on needs to have the ability to update itself
> over a wireless network by contacting a server and requesting an upgrade.
> To accomplish this I am writing a small second application that will
> download the upgrade files and then "install" them and then re-launch the
> main application. To do this the application will have to receive files
> over the serial port and save them to the handheld. Then once it has
> received all the updated files it will need to move (or more accurately
> rename) them so that they are ready to use. I have studied the Serial
> Manager, the Connection Manager, and the File Streaming API and I can't seem
> to find a fit. Can someone please steer me in the right direction at to how
> to:
>
> 1. receive a file over the serial port and save it to the Palm (without
> using hotsync)
>
> 2. rename a file on the Palm.
>
> I don't think that I can use the HotSync functionality since I can't change
> the way that the server sends the updates (i.e. I cant run the HotSync
> manager on the server) since the product I am working on is a Palm version
> of a system that already exists for WinCE and I have to use the existing
> messaging protocol. Thoughts on how to proceed anyone?
For this application, stay away from the File Streaming API. It uses record databases
as it's underlying representation. All the record sizes are fixed at 1024 bytes (not
officially stated anywhere, subject to change, yadayada). Unless your upgrade is raw
data this probably isn't a good fit.
You'll probably want to open a new resource database and construct the resources
yourself from the data you receive.
--
Adam Wozniak Senior Software Design Engineer
Surveyor Corporation
[EMAIL PROTECTED] 4548 Broad Street
[EMAIL PROTECTED] San Luis Obispo, CA 93401
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/