If you only wanted to distribute the software once, you could include an
image of the database in a resource, and then destroy the resource after you
verified that the DatabaseFromImage had worked.
I guess you could include code that would repack the database in case
someone wanted to beam it again. Just a thought....
Steve
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Danny
Epstein
Sent: Tuesday, July 18, 2000 2:42 PM
To: Palm Developer Forum
Subject: Re: Beaming a database with the application
The Launcher doesn't beam anything along with the application. You could
include your database in a resource in the application and have your
application instantiate the database using DmCreateDatabaseFromImage. This
would be a waste of space though. You might be able to put everything you
need into the application itself, and access it directly.
You could provide a Beam menu item in your application that beams the
application and the associated database to the Launcher on another device.
However, the receiver would have to acknowledge each individually, and the
second database couldn't be sent until the first was confirmed. Also, if the
sender used the Launcher to beam your application, they wouldn't get the
associated database.
There aren't any good solutions to this problem. It's something we're trying
to improve.
--
Danny Epstein
OS Engineer, Palm Inc.
-- original message from "Scott Johnson" <[EMAIL PROTECTED]>
news:17835@palm-dev-forum...
> I am developing an application that relies on a database to run. I would
> also like people to be able to beam the application and have the database
> beam with it. I assumed that when you beamed an application using the
Beam
> menu option from the application launcher, that all of that apps databases
> would go with it, but apparently that doesn't happen. Is there a way to
> beam the database without having to program the application to do it
> explicitly?
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/