I did find sysAppLaunchCmdCardLaunch and added some code:
(to handle the event)
case sysAppLaunchCmdCardLaunch:
{
SysAppLaunchCmdCardType *params =
(SysAppLaunchCmdCardType*)cmdPBP;
params->startFlags = sysAppLaunchStartFlagNoAutoDelete;
break;
}
Unfortunately, my our app still gets deleted. Am I doing this correctly?
thanks - bill
--
Bill Andreozzi
STATus Pro, Inc.
Phone: 425.869.0854
Mobile: 425.260.1127
E-mail: [EMAIL PROTECTED]
"Bill Andreozzi" <[EMAIL PROTECTED]> wrote in message
news:98721@;palm-dev-forum...
>
> When an application is launched from the card, the OS copies the app from
> the card into ram.
> My problem is that I need to know whether or not our app is really in ram
or
> that it will be deleted after the os quits.
>
> (e.g. if a card is ejected, I would like to launch our app from ram if it
is
> there,
> I did this by performing a dbID = DmFindDatabase( 0, STR_AppDbName )
> then looking at the dbID, unfortutely it always returns a value because
the
> app IS in ram, but when the app is exited, the OS removes the app from
RAM,
> thereby making the dbID invalid for SysUIAppSwitch( cardNo, dbID,
> sysAppLaunchCmdNormalLaunch, NULL );. )
>
> Is there anything particular that I could look at to determine if the app
is
> in ram or not?
>
> thanks - bill
>
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/