I accidently clicked 'ok' before I was finished with the code...
But basically, when I launch from the sysAppLaunchCmdNormalLaunch, everything
runs perfectly. When I launch (with the exact same code) from the
sysAppLaunchCmdAttention, I get weird errors when the application loads up:
What I'm wondering is what is the difference between the GoThere launch cmd and
the appLaunchNormal command. thanks
switch (cmd) {
case sysAppLaunchCmdNormalLaunch:
if ((error = AppStart(phoneNum)) == 0) {
FrmGotoForm(INBOX_FORM);
AppEventLoop();
AppStop();
}
break;
case sysAppLaunchCmdAttention:
if( ((AttnLaunchCodeArgsType*)cmdPBP)->command == kAttnCommandGoThere)
{
if ((error = AppStart(phoneNum)) == 0) {
FrmGotoForm(INBOX_FORM);
AppEventLoop();
AppStop();
}
}
else
DrawNewMessAlarm((AttnLaunchCodeArgsType*)cmdPBP); //this handles the
other events
break;
default:
break;
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/