"Mario Hewardt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks for the reply.
> So I guess this brings up another question in my mind. If my application
is currently open and running when the alarm triggers, seems like it would
be a waste to re-open the database. Is there a way to find out if the
application is currently running or not when alarm is triggered?
>

This is described in the docs and the samples (address, memo etc). Here is
something paraphrased from another working app:

    case sysAppLaunchCmdGoTo:
      {
        GoToParamsPtr paramsP = (GoToParamsPtr)cmdPBP;
       Boolean appNotRunning = (launchFlags & sysAppLaunchFlagNewGlobals) !=
0;
       if(appNotRunning) {
         // MyApp is NOT the current running app. Our app context
         // is not setup.
         // Get and modify the preferences and then launch the app.
         loadAppPreferences(); // works!
       }
        // do some stuff to the preferences
       if(appNotRunning)
         //launch the app
       else
         FrmGotoForm(...); // assuming that our form looks at preferences
when it is loaded
      }



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to