On Wed, 2002-09-25 at 09:25, Tony Cheung wrote: > I know we could use the SysUIAppSwitch() to launch an application. But > is there any code example on how to launch an application on a SD Card? > Specifically I would like to do something similar to the built-in > launcher. Is there any example code to do so?
Basically, you call VFSImportDatabaseFromFile(). That will copy the database from VFS storage into RAM, and it returns the card number and localid of the database, ready for you to call SysUIAppSwitch. However, the downside is that the application won't be automatically deleted from RAM once it's finished running (which is the only other thing the launcher does that you can't do). There's no good way to do that. In fact, even the launcher doesn't always do it right (for example, if you do a reset while inside the copied app). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Aztec Camera - Let Your Love Decide (Dreamland) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
