At 12:19 PM 9/8/2003, Matt Graham wrote:
Our product has to be able to be updated wirelessly.  Has anyone done this
before and how have you done it? Right now we're thinking about having a
separate PRC that does the updating but then we're having the problem of
also having to be able to update the update PRC.  This is all doable but I'm
thinking there might be an easier way.

We have code that updates our application's *databases* -- I mean, the *data* databases, not the *executable* database (Palm folks, help me with this nomenclature!) over the Internet, hence wirelessly if the device is suitably equipped. Updating the application itself is a different problem, but I just ran a small experiment on Palm OS 4.0 that suggests a possible solution: though you can't overwrite an executing application, you can *rename* the executing application database. It's as simple as this:



UInt16 cardNo; LocalID dbID; SysCurAppDatabase(&cardNo, &dbID); DmSetDatabaseInfo(cardNo, dbID, "AppDotOld", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

Once this has been done, Palm OS won't object to your installing a new application database with the name your application used to have; when the newly installed one gets a chance to execute, it could go out and delete any database it finds called "AppDotOld" (or whatever).

Greg Lutz
NearSpace, Inc.





-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to