thanks ----- Original Message ----- From: "Hynek Sladky" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <palm-dev-forum@news.palmos.com> Sent: Thursday, December 08, 2005 9:56 AM Subject: Re: launching an application on a card
> I use in one my app: > > err=VFSImportDatabaseFromFile (VolRef, lapp, &card, &locid); > DmDatabaseInfo (card, locid, NULL, &attr, NULL, NULL, NULL, NULL, > NULL, NULL, NULL, NULL, NULL); > attr|=dmHdrAttrRecyclable; > DmSetDatabaseInfo (card, locid, NULL, &attr, NULL, NULL, NULL, NULL, > NULL, NULL, NULL, NULL, NULL); > SysUIAppSwitch (card, locid, sysAppLaunchCmdNormalLaunch, cmdPBP); > > This code copies database from memory card to main memory, sets it's > attribute to 'delete it automatically after closing' and then runs it in > main memory. > > This works fine with one exception: if reset occurs during running this > app, it remains in main memory. But I think that it happens even in case > of standard launcher running app from card. > > Hynek Sladky > > > Drew Haninger wrote: > > so what does the palm launcher/desktop do when the user taps the icon for an > > application on a card: > > maybe moves to main memory, runs it and deletes it ? Is there an API for > > this... > > > > > > ----- Original Message ----- > > From: "Henk Jonas" <[EMAIL PROTECTED]> > > Newsgroups: palm-dev-forum > > To: "Palm Developer Forum" <palm-dev-forum@news.palmos.com> > > Sent: Thursday, December 08, 2005 3:01 AM > > Subject: Re: launching an application on a card > > > > > > > >>No, you can't runn apps on the card. It's just the same as an app on > >>your desktop has to be loaded into the main memory before executing. The > >>processor just can't access the memory card (at least not to fetch the > >>next op code...). > >> > >>Regards > >>Henk > >> > >>Drew Haninger wrote: > >> > >> > >>>is there a way to launch an application on a card without moving it to > > > > main > > > >>>memory. > >>> > >>>this code does not seem to work for aps on a card. > >>> > >>>err = DmGetNextDatabaseByTypeCreator(true, &state, sysFileTApplication, > >>>CreatorId, true, &appCard, &appID); > >>> > >>> MemPtrSetOwner((MemPtr)pParam, 0); > >>> > >>> err = SysUIAppSwitch( 0, appID, sysAppLaunchCmdCustomBase, pParam ); > >> > >> > >>-- > >>------------------------------------------------------------------------- > >> Henk Jonas [EMAIL PROTECTED] > >> Palm OS ® certified developer > >> > >> Please contact me, if you need an off-site contract worker. > >>------------------------------------------------------------------------- > >> > >>-- > >>For information on using the PalmSource Developer Forums, or to > > > > unsubscribe, please see http://www.palmos.com/dev/support/forums/ > > > > > > > > -- > For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/