My application needs to go back to its login form if there is no user input for a specific period of time. I am using AlmSetAlarm() and launch code sysAppLaunchCmdDisplayAlarm to do this.

In my AppHandleEvent() function I set the alarm to expire in N seconds. Each time the user performs an action, the alarm is reset. I handle the sysAppLaunchCmdDisplayAlarm command in StarterPalmMain() by calling AppStop(), then AppStart() and then FrmGotoForm(LoginForm). When the application exits I cancel any pending alarm so it won't occure while I'm outside the application. This seems to work fine.

Is there a better way to accomplish what I'm trying to do? This seems kind of kludgy to me.

Thanks,

Dana

PS I very much appreciate your responses to my many questions. I hope I haven't worn out my welcome yet...






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

Reply via email to