Hi Rob, I also wanted my application and databases to stay in main memory after being launched from an SD card: I didn't want to lose the changes to the read/write databases upon the application's exit.
My implementation was to detect sysAppLaunchCmdCardLaunch launch code. Then in the processing of the sysAppLaunchCmdNormalLaunch launch code, if the sysAppLaunchCmdCardLaunch had been detected, give an alert message about the impending reset and then SysReset(). There may be a more elegant solution, but I haven't found one. As you noted, make sure the databases are properly bundled with the application. Initially I made the mistake of setting the bundle bit only in the databases. Greg - Rob wrote: > > Hi, > > I want my launcher to launch apps from the sd card properly - I think I > have the basics - but a couple of gaps remain. > > What I think I have to do: > > 1) copy the app to memory > 2) copy the app and any apps that have the same creator and the bundled > bit set > 3) send SysAppLaunchCmdCardType (using SysAppLaunch?) > 4) check the SysAppLaunchCmdCardType - if err has been set to errNone, > skip to 6 > 5) send SysAppLaunchCmdNormalLaunch > 6) delete app and any databases with same creator and bundled bit set > > Have I got the right idea? > > Questions: > > How do I get access to SysAppLaunchCmdCardType after it's been modified by > the app I launched in order to skip 5 if necessary > > What does sysAppLaunchStartFlagNoAutoDelete do? The guide says it stops > the vfs manager from deleting the app if the volume is unmounted - what > does this mean? Is this a way to cause my app to be installed permanently > to memory (I don't want it run from the sd card) > > Is there a better way to install my app permanently to memory when it's > run from sd? > > Thanks in advance, > > Rob > > -- > If you've got a palm pilot, try my new launcher- It launches applications > and contacts! > Arrowlauncher available at www.hobbyistsoftware.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
