Iulia,
Some snips from some old code I wrote that does just this...
Boolean appIsActive = launchFlags & sysAppLaunchFlagSubCall;
// If the application is already active then
check for the
// next relevant alarm
if(appIsActive)
{
if(CheckAlarms())
{
GotoFormByStatus(true);
}
}
// If the application is not active, send it a
launch code
else
{
//Launch myself
if(SysCurAppDatabase(&cardNoP,&dbIDP)==0)
SysUIAppSwitch(cardNoP,dbIDP,sysAppLaunchCmdNormalLaunch,NULL);
}
Regards
John Sutton
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/