"Greg Lutz" <[EMAIL PROTECTED]> wrote in message
news:9244@palm-dev-forum...
> // There's a launchFlags bit that tells us whether we were already
> // active at the time the beam came in. We can't receive a
> // database under those circumstances, as it will very likely land
> // on top of the currently open database.
I don't know the particulars of your application, but you generally want to
support receiving a beam when your app is running. To do so, just close your
databases first, and then re-open them after the database is received.
For example, suppose you're writing a DOC reader. If someone beams you a
version of the same DOC you're reading, you should close it first, accept
the new DOC, re-open it, and finally update the display. The current scroll
position may be invalid; you should probably just scroll to the top.
> if (DmDeleteDatabase(cardNo, dbID) == 0)
You might want to ask the user before overwriting.
--
Danny Epstein
OS Engineer, Palm Inc.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html